Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The number in Replicate creates a problem
Message
From
05/04/2022 10:28:54
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01684050
Message ID:
01684070
Views:
50
>>>
>>>REPLICATE(' ',10-LEN(ALLTRIM(REFERENCE)))
>>>
...
>>>Now the above code does not work. The SQL Select returns the error:
>>>
>>>String is too long to fit.

>>>If I change the 10 in the above REPLICATE with 15, no error.  
>>>REPLICATE(' ',15-LEN(ALLTRIM(REFERENCE)))
>>>
Just a thought (hope nobody elese in the thread below also has already mentioned it)
this error can crop up with negative 2nd parameter. so if somewhen len (alltr()) .EQ. 11...

HTH
thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform