Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and error
Message
From
13/10/2006 14:39:05
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
13/10/2006 12:25:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01161719
Message ID:
01161884
Views:
20
>You're doing the classical RecordSource='' (nothing) procedure which causes a lot of problem. In stead base your grid on a cursor which exists before you create the grid. When you need to select new data:
>1. Select whatever ... into cursor curDummy (your SQL select)
>2. Select yourGridCursor
>3. zap
>3. append from dbf('curDummy')
>4. yourgrid.refresh

Actually, the steps can now be reduced to

1. zap in yourgridcursor
2. insert into yourgridcursor select whatever1..., whateverN
3. yourgrid.refresh

The only trouble here is that the fields in the select need to match the fields of yourgridcursor. Workaround for that is to insert into yourgridcursor (field1, ...,fieldN) select ...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform