Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lost Array Elements on a redimension
Message
From
05/04/2000 06:40:46
 
 
To
03/04/2000 11:31:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00354325
Message ID:
00355580
Views:
24
Hi Nancy,

Thanks for your advice. In the working code, not every section in the FOR loop is assigned to an element of the array. As it turns out I had dBase compatibility enabled. In MSDN it says that this will allow a value to be assigned directly to every element of an array (STORE m.value TO aMyArray), it seems that this also applies to a redimension. When fox redimensions it assigns the new element a value of .F., with SET COMPATABILTY ON the value of .F. is assigned to every element.

The code is working perfectly once more now that dBase compatability is off.

Once again, thanks for your advice

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Previous
Reply
Map
View

Click here to load this message in the networking platform