Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
22/10/2002 16:02:52
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Re: Grid
Miscellaneous
Thread ID:
00712657
Message ID:
00714067
Views:
25
>Eureka !

:)

>Very nice to meet you, Mr AddCursor. This guy was the one missing ! I knew it all the time, was just testing you.

Haha. If you add a cursor to the CDE at design time, then you need do nothing. If you subsequently create or USE a cursor at run-time, if you want Codemine to really know about it, then you really want to add it to the managed cursor list. AddCursor() is your man!

>Anyway, you solved it once again.

Awww, shucks!

>Well, if I populate the table with the contents of user1, then user2 access another register, so the grid should be populated with different records, wouldn't the table be already with user1 contents ?

Ah, I see what you mean. You get round this by creating the table with a temporary file name, like so :-
m.cTemp = Substr(Sys(2015), 3, 8)
create table (m.cTemp) ...
*-- Now release the table.
Use In (m.cTemp)
*-- Open it again with your alias.
Use (m.cTemp) Alias cur_ped
*-- Add it to the CDE
This.AddCursor('cur_ped')
You must remember to delete the table when your done with it so it is important to record the temporary file name to say a form property so when you close the form, put some code in its destroy method to delete the table using the value in m.cTemp.

>Anyway, everyday, learning something new.

Thats how it is.

>Obrigadão (it's like ... a big thank you.)

Nada (it's nothing <bg>)

Best
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform