Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to SetAll()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01009427
Message ID:
01009450
Vues:
19
I need to evaluate it runtime when the form initializes.

>>Hi all,
>>
>>I have a form with a pageframe containg 4 pages. There are several Label objects in each of the page. Some of the label's caption has the word "Week" in it. I would like to do a wholesale programmatic replace, STRTRAN() if you may, for each occurence of "Week" in a Label.Caption with "Month". I think I cannot use Form.SetAll() for this. I am using AMEMBERS() but I think I may have to drill down for each container objects where they may exist (ie. PageFrame). Is there a better way to do this?
>
>
>
>SELECT * from yourform.scx INTO TABLE newform
>REPLACE properties WITH STRTRAN(properties,"Week","Month") ALL FOR ALLTRIM(baseclass)="label"
>USE
>RENAME newform.dbf to newform.scx
>RENAME newform.fpt to newform.sct
>MODIFY FORM curform.scx
>
>
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform