General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only