Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSGraph Update
Message
De
06/12/2001 11:21:27
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
06/12/2001 10:30:38
Fabian Borghi
Xenon Information Technology
Itaparica, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00590508
Message ID:
00590582
Vues:
31
I prefer since most of the UT user only speak english.
for this case i will do the following:
create an object or in your graph container create a method that generates the graph this method receives the table name that will be used to generate the graph it can also received an additional parameter for example an array that holds the fieldname plus the caption plus other ever you need that method can look like this:

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform