General information
Category:
Forms & Form designer
>Have you tried the following before the scatter? :
>
>__pstring = 'Public __pstring'
>for i = 1 to fields('myalias')
> __pString = __pstring + ',' + field(i)
>endfor
>&__Pstring
>
>Glenn
my routine is very similar except that I need the memory variables (m.whatever) explicitly declared and I'm declaring each one within the loop rather than building a string like yours which I can see is a more elegant solution.
FOR M=1 TO FCOUNT()
PUBVAR='M.'+FIELD(M)
PUBLIC &PUBVAR
ENDFOR
one way or another, they are being declared public and then getting lost.
Harry
Previous
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