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 06:52:41
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:
01565774
Views:
56
>Hi Dragan,
>
>Thanks for the input
>
>The grid is used for data entry. Would that code still work for in this situation?

Just make the description's textbox.when() return .f. - as a function call it was not editable, with .when() returning .f. it would be inaccessible. Or you may just make that column readonly or something.

>Where would I put the call to replace all the descriptions in the grid?

Before the grid shows - so I guess at the latest in the grid.init(), if not as early as form.load() or wherever in between you open your tables.

If the description may change during the data entry, or you add records, then you'd need to add a record in the cursor too (with appropriate key value), and call the function to fill in the description, whenever any of the fields that the function uses change. Perhaps in the ARCC of the grid just

replace description with myfunction() in crsDescription

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