Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The Name of the SCX
Message
From
08/12/2004 17:47:59
 
 
To
08/12/2004 12:42:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00967662
Message ID:
00967891
Views:
7
>>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).

So JustStem(sys(16)) gives it to me!!! Great
Thanks Dragan
Previous
Reply
Map
View

Click here to load this message in the networking platform