Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Incrementing an array
I'm trying to use scatter to copy 1 field data from a cursor that the user can move the record pointer in with a grid to differnt records. Then hit a button and scatter that record into an array.
in the load of the form I have
public array redata(20,1)
public inc
inc=1
in the click of a command button I have
select ticketdata
scatter fields ticket to redata[inc,1]
thisform.list1.refresh()
inc = inc + 1
then I have a list box thats record source is set to redata
I only get the first number in my list box after that I can't get the array to increment to the next element. If I check the debugger I only see the first element of the array with the first ticket number.
Thanks
Kelly
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