Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HEEEEELP, a have a grid problem
Message
De
19/06/1997 10:11:23
 
 
À
19/06/1997 10:01:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036952
Message ID:
00036957
Vues:
41
>Please help! I can't take it anymore... Anybody know ANYTHING
>about a bug in VFP 5.0 / VFP 5.0a related to adding / removing
>columns in a grid at run-time?
>
>I'm designing a grid class with a lot of buit-in features :
>
>- click on header > set order to that column
>- shift+click on header > set filter to that column
>- select columns & rows and print the selection with a report
>etc.
>
>I also have to add a feature called 'running totals column' (RTC). At run
>time
>the user ask for a RTC on a numeric column.
>
>Example:
>
>This is the grid:
>
>client country balance note
>001 US 100 srv
>002 RO 40 aaa
>003 UK 110 aaa
>004 RO 50 awe
>
>The client add a rtc on Balance and the grid became :
>
>client country balance balance(rt) note
>001 US 100 100 srv
>002 RO 40 140 aaa
>003 UK 110 250 aaa
>004 RO 50 300 awe
>
>Well, everything is working OK except for one tiny detail. Once
>in a while VFP crash.
>
>Let me explain how the grid work. In the init event of the grid
>I'm, creating a R/W cursor and set a relation from the main table
>to the cursor. The cursor hold the running totals and what records
>are selected.
>
>When the user ask for a RTC, I add a column to the grid and set
>the ControlSource of the column to the RT field of the cursor.
>
>Well, once in a while VFP crash during that method. It is very
>difficult to trace because VFP crash whenever he want not when
>I want. However, it seems that VFP crash when the controlsource
>of the column is set.
>
>Anybody know what the %^$^$* I should do? Pleeeeeeeeeease.

It's just a point: it's much more reliable to use cursor with all fields+'RTC' as RecordSource all time and hide/show ColRTC (reset Visible,Width,Resizable properties) by user request.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform