Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Name of the SCX
Message
De
08/12/2004 12:42:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/12/2004 23:13:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
00967662
Message ID:
00967810
Vues:
7
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform