Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting to properties on another open non MDI form.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00161616
Message ID:
00162615
Views:
19
>>>Rich thanks. I will try this on monday. I only had two properties and I just went ahead and made them PUBLIC... I didn't want to but expediance is sometimes the better part of valor. ;} happy T-Day!
>>>
>>>>Joe,
>>>>
>>>>Look at the _SCREEN.FORMS() array. You can look at the following:
>>>>_SCREEN.FORMS(i).Name or any other property. The problem is if you DO a form it does not have the same name as the form that you ran in the _SCREEN object. It is a member of the _SCREEN but you refrerence it using the _SCREEN.FORMS() array. You can read the name out of the _SCREEN.FORMS().Name property and/or any other property after checking that you have the correct form in the array for reference. You could also set a variable reference to the form such as:
>>>>oForm = _SCREEN.FORMS(i)
>>>>
>>>>However, beware that setting a reference to a form object or anyother object will not allow that object to be released until the variable reference is released by either oForm = '' or oForm = .null.
>>>>
>>>>Rich
>>
>>
>>Why not use a named form?
>>
>>do form form1 name form_a
>>do form form2 name form_b
>>do form form3 name form_c
>>
>>You can then access the form objects with form_b.property.
>
>
>This is exactly what I needed. Thank you^100. ;}


Send cash, check or money order to ....< G >
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform