Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in PAD* functions? Or omission in documentation?
Message
From
27/10/2004 08:20:54
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00954748
Message ID:
00954816
Views:
17
As is often the case with Fabio's reported issues, I find myself wondering why and how you found this?

Why do you *need* to pad a string longer than a million characters?

>Hi everybody,
>
>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?
>
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform