Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to SetAll()
Message
From
28/04/2005 16:30:59
 
 
To
28/04/2005 16:24:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01009427
Message ID:
01009454
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform