Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Master File Lookup
Message
From
12/07/2001 03:39:36
 
 
To
10/07/2001 07:27:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00528517
Message ID:
00529579
Views:
8
Dear Hilmar,
Sorry for the delay in reply. I will definitely give it a try. Meanwhile, I tried designing the form for the lookup with listgox. This is what I did –
1.In the lookup form, I designed 1 listbox and 1 textbox.
2.I passed parameters to the form like field name or expression.
3.In the form activate method, I created a DO CASE structure. Based on the parameter passed, I created the SQL for the ROWSOURCE of the listbox.
4.Then I generated a common method where I passed parameters like rowsource, height, width etc. Then I assigned these parameters to the listbox. So, my listbox in done with the required fields from the master file.

Secondly, in the LOSTFOCUS event of the textbox, I restructured my SQL based on the user input for search and changed the ROWSOURCE property accordingly.
Then I fired listbox.REQUERY TO update the listbox based on user input for search.

Now, I am facing 2 problems.
How can I write an intelligent ON KEY LABEL command in my main form, which will pass the proper parameter from any textbox to this form?
How can I update the textbox in the calling form with the value selected from the lookup form?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform