Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass alge amount data to General type Field
Message
De
11/03/1998 10:28:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083823
Message ID:
00083882
Vues:
57
>I have found an example In VFP Developer's Guide about
>passing data to General type Field (MSGraph) by using string,
>which contains data.
>But string cant' be longer than 256.
>It's very limited.
>
>Giedrius Kaleckas
Hi Giedrius,
For VFP 254 is Character type field limit not string limit. A VFP string can be as large as 2 Gb and command line 8192 bytes. Virtually this means you could have a 2Gb string at a command line (no macro substitution).
*A sample for a form with a oleboundcontrol
#DEFINE TAB CHR(9)
#DEFINE CRLF CHR(13)+CHR(10)
THIS.LockScreen = .T.
M.CGDATA = ""
for ix=1 to 2000
    m.cgdata = m.cgdata+TAB+"val"+str(ix)
endfor
m.cgdata = m.cgdata +crlf+"Value"
for ix=1 to 2000
  m.cgdata = m.cgdata+TAB+str(ix)
endfor
wait window str(len(m.cgdata))
create cursor foo (gen1 g)
append blank
append general gen1 class "msgraph.chart" DATA M.CGData
THIS.OleBoundControl1.ControlSource = "Gen1"
THIS.OleBoundControl1.HasLegend = .t.
*THIS.OleBoundControl1.autoformat(14, 1)
THIS.LockScreen = .F.
The above code would produce a 50007 bytes m.cgdata (Do not run the example if you don't have a fast computer - lower the 2000 value first).
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform