Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty last line not recognized by ALINES()
Message
From
24/05/2003 11:19:39
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00792524
Message ID:
00792549
Views:
24
>I think that Alines has always been this way, and it does create a discrepency.
>lcC = "a" + ccCRLF + "b" + ccCRLF + "c" + ccCRLF + ""
>
>with Memlines(), you get four
>with alines(), you get three
>
>This has bitten me good on a couple of equations. Upgrade my code to use alines() and suddenly my app starts throwing run time errors because it attempts to access beyond end of the array when last fragment in original line is empty

Right! That's exactly what happens to MY code and it has driven me to create this thread. I know it's the same in vfp6, but still I regard it to be a bug. You all agree?
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform