home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9337 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umnoor
  3. From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
  4. Subject: Re: Paradox questions
  5. Message-ID: <C1A4xJ.6C5@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: ccu.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. References: <2280@blue.cis.pitt.edu>
  10. Date: Fri, 22 Jan 1993 23:51:18 GMT
  11. Lines: 23
  12.  
  13. field@.cs.pitt.edu.cs.pitt.edu (Brian Field) writes:
  14.  
  15. >2)     How does one access the contents of a field name that have been passed
  16. >    as an arguement to a procedure?  Do I need to use EXECUTE to do this,
  17. >    or is there an alternative?
  18.  
  19. Following is a way. May not be the best way but gives you an alternative to
  20. EXECUTE command.
  21.  
  22. Suppose variable name containing field name is FieldName
  23.  
  24.        MoveTo TableName
  25.        MoveTo Field FieldName
  26.        MyVar = FieldStr()
  27.  
  28. to move around you can use MoveTo command with combination of RecNo() and 
  29. NRecords(). Also Up, Down, Home, End and Skip prove to be usefull. But you
  30. will notice that not using EXECUTE forces you to read the value of field 
  31. first into a var before you can manipulate it.
  32. Hope it helps!
  33.  
  34. --nasir
  35. umnoor@ccu.umanitoba.ca
  36.