home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!mcsun!sun4nl!freya.let.rug.nl!welling
- From: welling@let.rug.nl (George Welling)
- Subject: Re: dBase programming question
- Message-ID: <1993Jan8.075633.15491@let.rug.nl>
- Sender: news@let.rug.nl (news manager)
- Nntp-Posting-Host: tyr.let.rug.nl
- Organization: Faculteit der Letteren, Rijksuniversiteit Groningen, NL
- References: <1993Jan7.185640.9973@ac.dal.ca>
- Date: Fri, 8 Jan 1993 07:56:33 GMT
- Lines: 39
-
- In article <1993Jan7.185640.9973@ac.dal.ca> guruman@ac.dal.ca writes:
- >
- > I'm looking for some help on a dbase program I'm writing.
- >It's a silly problem, nevertheless, I can't get by it. I need to know how
- >to assign inputted text to a text variable
- >i.e. input "employee name? " to name
- >(oh sorry, this` is for dBase III+)
- >I presume I have to define the variable "name" as a character variable,
- >but my little reference book seems to have overlooked variable definitions.
- >Any suggestions on the proper path to follow?
- >
- > Thanks in advance.
- >
- > Rob Scott.
- > guruman@ac.dal.ca
- > Halifax Nova Scotia
- >
- well suppose the field in the database is called CNAME and the database DATBAS
-
- USE datbas
- * create the variable
- mName = SPACE(LEN(DATBAS->cname))
- @ 10,10 SAY "Input name " GET mName
- READ
-
- That's all.
- = = =
- ___|_____ ___|_____ ___|_____
- / __|____ / __|____ / __|____
- _|__ / / _|__ / / _|__ / /
- / /_______/______/ / /_______/______/ / /_______/______/
- /____/ | ______|__ /____/ | ______|__ /____/ | ______|__
- ______|______|_\ o o o | ______|______|_\ o o o | ______|______|_\ o o o |
- \ o o o o o o o o | \ o o o o o o o o | \ o o o o o o o o |
- \ / \ / \ /
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- George M. Welling - dep.Alfa-Informatica HCI - University of Groningen
- phone : +31 50 63 54 74 | fax : +31 50 63 49 00 | welling@let.rug.nl
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-