Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Tag don't support CHR(0)
Message
 
 
À
13/05/2005 11:44:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01013899
Message ID:
01013941
Vues:
18
Looks like a bug to me but you don't have to loop through all 256 characters to show that CHR(0) is not supported by TAG property.
o = CREATEOBJECT("custom")
lcStr = ">" + CHR(0) + "<"
o.Tag = lcStr

? LEN(o.Tag), o.Tag == lcStr
* Observed: 1, .F.
* Expected: 3, .T.
>
>* Tag documentation:
>* Expr
>* Specifies any string.
>
>WITH CREATEOBJECT("custom")
>	FOR k=0 TO 255
>		.Tag= 'x'+CHR(m.k)+'x'
>		IF .Tag == 'x'+CHR(m.k)+'x'
>			LOOP
>		ENDIF
>		? M.K,.Tag
>	NEXT
>ENDWITH
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform