Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP aware DoForm function suggestions
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
Application:
Desktop
Miscellaneous
Thread ID:
01370806
Message ID:
01370966
Views:
26
>Hi Greg
>
>>1) Change the LPARAMETER to a PARAMETER. The LPARA... are local variable where the PARA... are Private variable. The .Show method should then be able to see them. You could then set the form's properties from them. This relates the setting of the properties up to the various forms being opened.
>
>No, all this happened because I wanted to add another parameter and DoForm() in it's original form needed to be modified.
>
>>2) Preset a Collection object with the Key being the Property's Name and the Value to the value those properties are to be changed. Pass the collection to the DoShow as the only parameter. Then before the .Show in the DoForm read the collection passed; drawing the property name from the Key and setting the Form object property the value in the Value part of the collection. This method differs from the first in that the calling section to DoForm controls which properties are set and what they are set to.
>
>This collection object thing is fine, though now it warrants the initialization of the collection object itself. Thanks I will work on this line as I think a couple or three wrapper functions can allow me to achieve this and yet hiding the nitty-gritty.

I hope it helps.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform