Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointer to Form in Design Mode?
Message
From
03/02/1999 15:07:02
 
 
To
03/02/1999 14:48:23
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00183586
Message ID:
00183599
Views:
16
>If anyone can help:
>
>I know that when a form is open in design mode, it exists as an object, because ASELOBJ() when called in a builder can return a pointer to it.
>
>What I'm wondering is, is there a way to obtain a pointer to a form which is open in design mode programmatically, something like:
>
>MODI FORM MyForm
>oForm = **Some command to get pointer to that open form
>DO MyBuilder WITH oForm
>
>I have dug through _Screen object and cannot find anything referring to forms open in design mode. Does anyone know of a back door to get at this?
>
>As always, TIA.

You can try:
FOR EACH oForm IN _SCREEN.Forms
 IF oForm.Name="MyFormName"
  DO MyBuilder With oForm
  RETURN
 ENDIF
ENDFOR
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform