Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Substitution for MsGraph5.ChartWizard
Message
De
08/07/1998 12:53:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/07/1998 12:42:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00115198
Message ID:
00115353
Vues:
13
>....
>>MCGDATA = MCGDATA + CRLF
>>scan
>> for ix = 1 to nCols
>> MCGDATA = MCGDATA + iif(ix=1,"",TAB)+nvl(str(evaluate(field(ix))),"")
>> endfor
>> MCGDATA = MCGDATA + CRLF
>>endscan
>>* Data prepare *
>>
>>create cursor testgen (genfld1 g)
>>append blank
>>append general genfld1 class "msgraph" data MCGDATA
>
>Cetin,
>
>Why not to replace this scan with copy to ... deli with tab ?
>This works much faster:
>
> copy to TEMP.txt deli with tab
> local fp, cstr
> fp = fopen( 'TEMP.txt' )
> cstr = fread( m.fp, 99999 )
> = fclose( m.fp )
>
>create cursor testgen (genfld1 g)
>append blank
>append general genfld1 class "msgraph" data
> data ( MSGDATA+chr(13)+chr(10) + m.cstr )

Well Andrus,
It could be done many ways. MSGraph is exceptionally slow compared to VFP so I didn't feel to find a faster way to do it (wait window would just flash with both approaches - mine a slight longer flash but no temp table on disk). I only wanted to mention filling data via OLE automation is really killing.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform