[comp.os.msdos.apps] dbase IV "popup" while editing data with "read" command

symons@imec.be (Jan Symons) (03/26/91)

Dear netters,

I am writing a dbase IV application which uses the "@... get"
and "read" commands for data entry. However I also want the
possibility to fill in the edited field by taking data from a 
list of keywords (from another .dbf file) using the "on popup..."   
command.

My problem is that I cannot transfer the choice of the popup
(prompt()) to the variable being edited with the "read" command.
This is roughly how the code looks like :

define popup P1 from ... prompt field keywords	
* keywords is a field in a .dbf file
on selection  popup P1 do get_key
@... say "var = " get var
on key label F7 activate P1
read
on key label F7
...

Procedure get_key
deactivate popup
thekey=prompt()
*
* How to transfer "thekey" to "var" now, soo that it looks as if the
* user typed whatever "thekey" contains ????
*
return

That's it. I'm stuck here, and would be very glad if somebody
could give me a hint....

				thanx,
				Jan Symons@imec.be

------------