Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.SCX file name
Message
From
25/02/2001 02:04:56
 
 
To
24/02/2001 18:12:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00479249
Message ID:
00479289
Views:
33
>Hello.
>
>The command "DO FORM" creates a variable with the same name with the .SCX file.
>Is there a way to automatically release it at the form's release?
>
>In other words: in the UNLOAD method, is there a way to find what the file name is?
>
>Thank you.
>Grigore Dolghin

I'm not sure why you'd want to do this.

DO FORM MyForm creates a PRIVATE memvar of object type (i.e. object reference) in the calling program. When the form is .Release(d) and control returns to the line after DO FORM, the object reference is set to .NULL. (although it still exists).

When the calling routine exits, the private memvar will be automatically destroyed.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform