Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform - 255 character limit?
Message
From
27/09/2003 18:33:47
 
 
To
26/09/2003 14:28:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831848
Message ID:
00832957
Views:
18
Hi Marcia,

TRANSFORM(string,"@T") have limits:

- not support CHR(0)
( C internal routine use z-string variable, and stop when found a /0 )
x='A'+CHR(0)+'B'
? TRANSFORM(m.x)==m.x,TRANSFORM(m.x)
? TRANSFORM(m.x,"@T")==m.x,TRANSFORM(m.x,"@T")
- trunc output to 255 characters
?LEN(TRANSFORM(REPLICATE("A",256),"@T"))
- not support memo
CREATE CURSOR tt (mm m )
APPEND BLANK
REPLACE mm WITH REPLICATE("A",256)
?TRANSFORM(mm,"@T")                 && memo
?TRANSFORM(SUBSTR(mm,1,255),"@T")   && memo
?TRANSFORM(rtrim(mm),"@T")          && C(255)
?LEN(TRANSFORM(rtrim(mm),"@T"))     && C(255)
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform