LPARAMETERS tcTableName, taFields
LOCAL lni, lafields
SELECT (tcTableName)
SCAN
IF VARTYPE(tafields) # 'L' && this will be the case where the abbility of cheching for an array was usefull
FOR lni = 1 TO ALEN(tafields, 1)
* put the code to add to the graph
ENDFOR
ELSE
AFIELDS(lafields, tcTableName)
FOR lni = 1 TO ALEN(lafields, 1)
* put the code to add to the graph
ENDFOR
ENDIF
ENDSCAN
>Ok if you preffer english.
>I put a graph in a form.
>I execute a query and i put it into a table.
>I need generate a graph with this results.
>If i generate a graph with a full table when i put this into a form, the graph conserve the same data.
>I need to refresh the data in each query.Alexandre Palma
Senior Application Architect