Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Name of the SCX
Message
From
08/12/2004 12:42:02
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
07/12/2004 23:13:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00967662
Message ID:
00967810
Views:
11
This message has been marked as the solution to the initial question of the thread.
>How can I retreive the name of the scx at runtime from within a form?
>This is not the same as name of the form.
>
>For example if I
>Do Form Myform
>an object m.myform will be created (same as name of scx) but the name of the form could be whatever is set in the property dialog and is retrieved from myform.name
>
>I would like to know what "myform" is for any form at runtime.

For a method which is defined inside the form itself, sys(16) returns something like this:

formname....object.method w:\bla\bla\bla\myform.sct

so if you'd just add a .getscxname() method in each form which would return the second part of sys(16), that's it. Note that it returns sct, not scx (also vct, not vcx if it's in a classlib).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform