Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if =CHR() is in label caption
Message
De
18/12/2003 17:20:53
 
 
À
18/12/2003 17:06:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00860538
Message ID:
00860549
Vues:
15
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.



>>I have some converted form label controls whose caption is something similar to
>>
>>=CHR(195)
>>
>>I am stepping through all controls on the form and changing the caption on those labels to ''
>>
>>the problem I am running into is that the following does not work because when I run it foxpro does an evaluate on it and return the evaluated expression and I need to determine if CHR( is actually in the caption before evaluation:
>>
>>
>>*ocontrol changes with every control on the form
>>IF "=CHR(" $ UPPER(ocontrol.caption) && returns the evaluated expression
>>
>>
>>in development ocontrol.caption really is =CHR(195)
>>
>>How can I determine that? Any ideas?
>>
>>TIA,
>>tracy
>
>If you have an object reference from the controls you can use the ReadExpression method.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform