home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umnoor
- From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
- Subject: Re: Paradox questions
- Message-ID: <C1A4xJ.6C5@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- References: <2280@blue.cis.pitt.edu>
- Date: Fri, 22 Jan 1993 23:51:18 GMT
- Lines: 23
-
- field@.cs.pitt.edu.cs.pitt.edu (Brian Field) writes:
-
- >2) How does one access the contents of a field name that have been passed
- > as an arguement to a procedure? Do I need to use EXECUTE to do this,
- > or is there an alternative?
-
- Following is a way. May not be the best way but gives you an alternative to
- EXECUTE command.
-
- Suppose variable name containing field name is FieldName
-
- MoveTo TableName
- MoveTo Field FieldName
- MyVar = FieldStr()
-
- to move around you can use MoveTo command with combination of RecNo() and
- NRecords(). Also Up, Down, Home, End and Skip prove to be usefull. But you
- will notice that not using EXECUTE forces you to read the value of field
- first into a var before you can manipulate it.
- Hope it helps!
-
- --nasir
- umnoor@ccu.umanitoba.ca
-