>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) ...
Use In (m.cTemp)
Use (m.cTemp) Alias cur_ped
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