Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter command questions
Message
From
22/06/1998 14:22:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Scatter command questions
Miscellaneous
Thread ID:
00110628
Message ID:
00110628
Views:
56
I'm either misunderstanding the scatter command sytax or else there's something wrong with it..

I am using Visual Foxpro 3.0b on WinNT 4.0 WS w/ SP3.
I open a table. This occurs with either exclusive or shared use.

I want to create an empty array which has elements whose size / type are the same as the table. (For this example, I'll use a table called 'myTable' and array called 'myArray.') Ok, fine.. According to the documentation, (as I undersand it) the following should do the trick:

use myTable
scatter to myArray blank
display

When I do the 'display' command, I see the the field names displayed on the background of vfp and below it, I see (in the same format as the fields), the contents of the first record in table myTable.

Why is it doing this? As I understand the documentation, this is exactly what it _shouldn't_ be doing. I just want the blank array, not to have it populated with the first record.

tia,

Marc Mandel
Next
Reply
Map
View

Click here to load this message in the networking platform