Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh/Freeze in multi user environment problem
Message
From
12/02/2013 05:19:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01565701
Message ID:
01565765
Views:
68
>Hi Tore
>
>I am not using cursors for the grid. The grid data source is a table and I added an additional column at the end whose data source is an function the returns a description.

And this may potentially be the cause of the trouble. This function is called for each visible row on each refresh of the grid. If it's anything above trivially simple, it may just be the bit that causes extra traffic and breaks the camel's back.

My suggestion is to create a cursor with just a key and description
select mykey, space(100) as description;
   from myGridsTable;
   into cursor crsDescription readwrite
index on mykey tag mykey

select mygridstable
set relation to mykey into crsDescription   && maybe add "additive" here
replace all description with myFunction() in crsDescription
go top
And then make that additional column's controlsource="crsDescription.description" instead of the function call. This way the function will be called only once per row.

back to same old

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

Click here to load this message in the networking platform