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 11:04:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/03/1998 10:41:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00083823
Message ID:
00083895
Vues:
59
>>>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
>
>Excellent code! Cetin, where I can find a list of all graph properties (to modify graph on fly).
VBA_grp.hlp (..\msapps\msgraph5)or vbagrp8.hlp (..\Microsoft office\Office). I "steal" the PEM from there. Again hlp is for VB (as M$ always do) and the real trouble is VB constants. I couldn't find a reference for those constants yet.
BTW: autoformat(14, 1) works with MSGraph5 but I think they've changed the VB constants for MSGraph8. I built a simple form (above is init code with of course 10 instead of 2000) and there I have 2 textboxes feeding autoformat values to graph. autoformat(-1 to 5,1) works ! No documentation for autoformat in vbgrp8.hlp.
Do you know a way to reveal out (or pass as Constant name) those constants ?
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