Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if =CHR() is in label caption
Message
From
18/12/2003 17:55:14
 
 
To
18/12/2003 17:20:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00860538
Message ID:
00860561
Views:
17
>I'm trying but even on standard converted labels that just have text it returns 'Property Genearal Information is not found' for a control whose caption is (literally in the field is the expression below including the equal sign and the quotes):
>
>="General Information"
>
>and I want to change it to General Information without the quotes and the equal sign.
>
>Using:
>
>?ocontrol.readexpression(STRTRAN(ocontrol.caption,'=',''))+"'"
>
>when ocontrol is the label object lblgeneral for instance.
>

Try something like
lc_caption = oControl.ReadExpression('Caption')
IF 'CHR(' $ UPPER(lc_caption)
   *-- I don't know how you want to convert CHR() values
   oControl.Caption = "Hello"
ENDIF
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform