home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8921 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.2 KB  |  52 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!mcsun!sun4nl!freya.let.rug.nl!welling
  3. From: welling@let.rug.nl (George Welling)
  4. Subject: Re: dBase programming question
  5. Message-ID: <1993Jan8.075633.15491@let.rug.nl>
  6. Sender: news@let.rug.nl (news manager)
  7. Nntp-Posting-Host: tyr.let.rug.nl
  8. Organization: Faculteit der Letteren, Rijksuniversiteit Groningen, NL
  9. References: <1993Jan7.185640.9973@ac.dal.ca>
  10. Date: Fri, 8 Jan 1993 07:56:33 GMT
  11. Lines: 39
  12.  
  13. In article <1993Jan7.185640.9973@ac.dal.ca> guruman@ac.dal.ca writes:
  14. >
  15. >       I'm looking for some help on a dbase program I'm writing.
  16. >It's a silly problem, nevertheless, I can't get by it.  I need to know how
  17. >to assign inputted text to a text variable
  18. >i.e.  input "employee name? " to name
  19. >(oh sorry, this` is for dBase III+)
  20. >I presume I have to define the variable "name" as a character variable,
  21. >but my little reference book seems to have overlooked variable definitions.
  22. >Any suggestions on the proper path to follow?
  23. >
  24. >    Thanks in advance.
  25. >
  26. >    Rob Scott.
  27. >    guruman@ac.dal.ca
  28. >    Halifax Nova Scotia
  29. >
  30. well suppose the field in the database is called CNAME and the database DATBAS
  31.  
  32. USE datbas
  33. * create the variable
  34. mName = SPACE(LEN(DATBAS->cname))
  35. @ 10,10 SAY "Input name " GET mName
  36. READ
  37.  
  38. That's all.
  39.              =                         =                           =
  40.           ___|_____                 ___|_____                   ___|_____
  41.          /         __|____         /         __|____           /        __|____
  42.       _|__        /      /     _|__         /      /      _|__         /      /
  43.     /    /_______/______/     /    /_______/______/      /    /_______/______/
  44.    /____/    | ______|__     /____/    | ______|__      /____/    | ______|__
  45. ______|______|_\  o o o | ______|______|_\  o o o |  ______|______|_\  o o o |
  46.     \  o o o o o o o o  |     \  o o o o o o o o  |      \  o o o o o o o o  |
  47.      \                 /       \                 /        \                 /
  48. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49.      George M. Welling - dep.Alfa-Informatica HCI - University of Groningen
  50.      phone : +31 50 63 54 74  | fax : +31 50 63 49 00  | welling@let.rug.nl
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52.