Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lost Array Elements on a redimension
Message
From
03/04/2000 11:30:08
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00354325
Message ID:
00354336
Views:
16
Ben-

I might be missing something in what you're saying. But, if you know how big the array needs to be before the FOR loop (lnSections), why not just dimension the array once, and be done with it? IOW, I'd rewrite:
>FOR lnCount = 1 TO lnSections
>    DIMENSION taReferredArray[lnCount]  && Here is where the issue occurs
>    taReferredArray = lcStrippedValue
>ENDFOR
To something like:
DIMENSION taReferredArray[lnCount]  && Here is where the issue occurs
FOR lnCount = 1 TO lnSections
    taReferredArray[lnCount] = lcStrippedValue
ENDFOR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform