Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Scatter command questions
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement