Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to SetAll()
Message
De
28/04/2005 16:30:59
 
 
À
28/04/2005 16:24:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01009427
Message ID:
01009454
Vues:
18
>I need to evaluate it runtime when the form initializes.

I would just build it into the .Init of the Label to make the change.

>
>>>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
>>
>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform