Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing aliases based on parameter passed into a form
Message
 
To
08/03/1999 18:17:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00195389
Message ID:
00195392
Views:
18
Geoff,
This really can't be done with a parameter, as the Init event (which gets the parameter) occurs after the DE is loaded.
You could try using a pre-defined variable (non-local) that is set before calling the form, and in the form's DE BeforeOpenTables, have code like:
THIS.Cursor1.CursorSource = cTableToUse
Mark

>I have a form that I pass a parameter into where the form uses different tables. For example, if the parameter is 'Order' I open the live transaction files and if it is 'Quote' I open the quote tables. I would combine the tables but due to the generation of order numbers I decided seperate tables would be better.
>
>I added the tables to the dataenvironment but where do you recommend me changing the alias? When the data environment loads it does not know the parameter passed into the form. However, if I don't specify an alias the grids and other controls do not know where to bind to....any suggestions?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Reply
Map
View

Click here to load this message in the networking platform