Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Var here on Modeless Gone on Modal
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00192020
Message ID:
00192055
Views:
24
>>>I have a form that contains undefined variables as controlsources on the form's controls. If I set the form as modeless, I can see the variables . If the form is modal, the are gone. The controls on the forms were taken from forms that were converted from 2.6 using the functional converter. Should I give up?
>>
>>It's normal to replace variables with properties. Also one more consideration: in VFP (in opposite to 2.6) there is no necessity to have something behind the control like variable in controlsource. You may just leave the control alone (unbound) and use its Value property when it will come to save a record.
>
>There is a legacy procedure file (that I have to use because of other processes) that expects these variables to exist. They exist in non-modal but not in modal. The bizarre thing is that after I close my form, the variables become visible. The form has to be modal to exist with the rest of the app.

Generally speking, if you don't declare them as PUBLIC, you may not rely onthem in either modal or modeless form, and PUBLIC declaration looks ugly these days. So, the normal way is to fix it.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform