Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do I send VFP bugs to?
Message
From
24/06/2001 21:23:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00522896
Message ID:
00522918
Views:
10
Tom,

The limitation is actually 255 characters. If you make a to equal 255 characters the function works. At 256 it fails.

However, if you make the characters different like this:

a=REPLICATE("X",100) + REPLICATE("Y",100)+REPLICATE("Z",100)+REPLICATE("Q",100)

?ATC("Q",a)

Then the ATC command correctly returns 301.

Apparently there is a limitation if the characters are all the same. I'd guess that internalls VFP parses the string to separate 255 length 'sub' stings.





>>Tom,
>>Many times one person's "bug" is really a "feature" that's in the code due to backward compatibility, etc. Can you post the nature of your problem, and if it really is, then possibly one the MS UT participants can forward it to the appropriate area for analysis.
>>
>>Rick
>
>Sure, the bug is simple. The ATC() function fails if the first argument is longer than 255 characters. Note that AT() works fine. I discovered that the bug goes all the way back to FP Dos.
>
>a = replicate("X", 300)
>b = a
>? ATC(b, a) && returns 0.
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform