Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if =CHR() is in label caption
Message
De
19/12/2003 09:09:09
 
 
À
18/12/2003 17:38:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00860538
Message ID:
00860652
Vues:
20
That did it! Thanks!!!!!!

>>The problem is that I do not know what they all may be. There are many of them used in FPD26 for line drawing, etc and special characters and they are all entered as =CHR(whatever#)...
>>
>
>Then the form hack should work just fine after backing it up somewhere for good measure, e.g.
>[evaluated expressions in captions are stored like this e.g. caption=" =Chr(195)" is stored Caption = (CHR(195))
>here's an updated version to handle both =CHR(x) and ="Some string"
>
>
#Define CR Chr(13)
>** set those with CHR(x) in label expression to empty caption
>Update theForm.scx ;
>  set Properties=StrTran(properties, ;
>	  "Caption = ("+StrExtract(properties, "Caption = (",CR), ;
>	  [Caption = ""]) ;
>  where baseclass="label" ;
>  and "CHR(" $ Upper(StrExtract(properties, "Caption = (",CR))
>
>** set those with ="Some string" to just "Some string"
>Update theForm.scx ;
>  set Properties=StrTran(properties, ;
>	  "Caption = ("+StrExtract(properties, "Caption = (",")"+CR)+")"+CR, ;
>	  [Caption = ]+StrExtract(properties, "Caption = (",")"+CR)+CR) ;
>  where baseclass="label" ;
>  and "Caption = (" $ properties
>
>USE in theForm
>Modify Form theForm nowait
.·*´¨)
.·`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