General information
Category:
Coding, syntax & commands
>Hi All,
>i am trying to create a new cursor with fieldnames located in a dynamic array. the code i use is as follows:
>
>create cursor gracur(&alabels[1] N(10))
>if alen(alabels) > 1
> for i=2 to alen(alabels)
> newcolm = str(alabels[i])
> alter table gracur add column &newcolm N(10)
> endfor
>endif
>select gracur
>append from array agraph
>
>every time i run this it gives me a syntax error on the first line. if this is not the way to do it, how can i go about setting up this cursor??
>please help!!!!
>
>Jordan
I dont think you can use & with an array
try
x= alabels[1]
create cursor gracur(&x N(10))
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only