Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-level form properties from a child window
Message
From
09/10/2006 09:33:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01160521
Message ID:
01160528
Views:
8
This message has been marked as the solution to the initial question of the thread.
>Hi all, I'm working with a top-level form as my main form and I'd like to know how can I get its properties from the child windows.
>
>So far I've tried:
>
>
>_Screen.formname.property
>Formname.property
>
>
>but it didn't work.
>
>Thanks for your help in advance!

You need a reference to that form, not _screen. You might save its reference to oApp custom public object. ie:

do form myTopMain name oApp.mainform

Then from anywhere in you app:

oApp.mainform.Somepublicproperty is accesible.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform