Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can the names of classes put on forms be forced?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00795377
Message ID:
00795502
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
Eddie,

Builders to the rescue.

Here's a little builder that will remove the digits from the currently selected object names. It doesn't bother with checking to see if it'll cause a name conflict ie text1 and text2 both trying to become text.
n = aselobj( lax )
for i = 1 to n
   lax[i].name = chrtran( lax[i].name, "0123456789", "" )
endfor
This builder will do the whole form at once:
aselobj( lax, 1)
lax[1].name = chrtran( lax[1].name, "0123456789", "" )

for each loObject in lax[1].Objects
   loObject.name = chrtran( loObject.name, "0123456789", "" )
endfor
>When I add the class "cmdExit" button to a form, it names the button "cmdExit1". I was wondering if there is a way to prevent it from putting the 1 on it as there is only one of these buttons on a form =)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform