Doron,
Maybe I didn't understand your question. A grid could query :
thisform.UserID+" "+SYS(1271,This)+" "+UPPER(SYS(1272,This))
too in its init or in any method. ie: It could do this in its own init :
if thisform.UserId = ''
return .t.
endif
this.Id = thisform.UserID+" "+SYS(1271,This)+" "+UPPER(SYS(1272,This))
*Form.init
*...
thisform....mygrid.init()
Cetin
>Hi Cetin,
>
>The class is there already so why would I save it as class. I need pass some unique id into this class as explaned below.
>
>Regards,
>
>Doron
>
>>>Hi All,
>>>
>>>What kind of expression would you pass into each grid as a unique ID. Like you can have 5 users using the same grid via the same button named Income or 5 users are using the same button named company all in the same form. Each call has its own grid saving. If the grid could be saved as a class then it has the same form and same grid name all the time.
>>>
>>>If it is a form I can use like:
>>>UserID+" "+SYS(1271,ThisForm)+" "+UPPER(SYS(1272,This.grdPickList))
>>>
>>>But that does not work for a class.
>>>
>>>Any idea is appreciated.
>>>
>>>Regards,
>>>
>>>Doron
>>
>>Doron,
>>A grid could be saved as a class (mygrid.saveasclass()). You could save it to UserId.VCX.
>>Cetin