Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a unique ID to save the grid settings
Message
From
12/04/2002 07:12:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00643563
Message ID:
00644147
Views:
10
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform