Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00524602
Message ID:
00524606
Views:
14
>Ok, I'm sure I'm being completely daft here, but I've got what should be a simple problem. I want to control a Form from a PRG (alter captions, values, change colors, etc). But how?
>
>I tried FormName.Controlname.PropertyName=Value, and _Screen.Formname.etc doesn't work either. I read something about a FormSet (multiple forms in one SCT, which you can then reference: FormSet.Form.Control.Property=Value), but that isn't an option in the project I'm working on.
>
>I'm certain that there is a simple, slap me upside the head, easy answer to this, but heck if I know it :)

One way of using the _Screen is:

_SCREEN.FORMCOUNT

give you a cont of all forms open
use an idex to reference them

_SCREEN.FORMS[index].

So if you want to execute a queryunload for a form you would:

lnIndex = 1 (or what ever)
_SCREEN.FORMS[lnIndex].QUERYUNLOAD()

Hope this helps..
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform