Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in PAD* functions? Or omission in documentation?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00954748
Message ID:
00954752
Views:
23
This message has been marked as the solution to the initial question of the thread.
There's a limit on the size of VFP string variable - 16,777,184 bytes. You can create longer variable but string function will generate an error.
lnMax = 16777184
? ALLTRIM(PADr(m.ln, lnMax))
? ALLTRIM(PADr(m.ln, lnMax+1))
Check http://fox.wikis.com/wc.dll?Wiki~StringLength

>
>Perhaps Fabio already reported it, but I just discovered a problem in VFP8:
>
>ln=RAND()*100000000000000
>?ln
>?ALLTRIM(PADr(m.ln,10000000000000000000000000))
>?PADr(m.ln,10000000000000000000000000)
>?ln
>?ALLTRIM(PADr(m.ln,1000000000000))
>?ALLTRIM(PADr(m.ln,100000000000))
>?ALLTRIM(PADr(m.ln,10000000000))
>?ALLTRIM(PADr(m.ln,1000000000))
>?ALLTRIM(PADr(m.ln,100000000))
>?ALLTRIM(PADr(m.ln,10000000))
>
>In the documentation to PADR (C,L) functions there is no mentioning about what is the maximum number allowed in these functions. I believe, it should be documented. What does VFP9 say about it?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform