Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Tag don't support CHR(0)
Message
 
 
To
13/05/2005 11:44:22
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01013899
Message ID:
01013941
Views:
17
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform