Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question in grid.when()
Message
From
05/04/2004 11:14:56
 
 
To
05/04/2004 10:16:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00892167
Message ID:
00892290
Views:
17
COOL!

>>hi cetin,
>>
>>but will the arcc() fire only if i changed from one row to the other? i need to be able to edit the current row when user = author, without first clicking other keys.
>>
>>pls enlighten me on this.
>>
>>TIA
>
>I remember I sent arcc code before, probably you never tried :(
>
>Public oForm
>oForm = CreateObject('myForm')
>oForm.Show
>
>Define Class myForm As Form
>  DataSession=2
>  Add Object myGrid As Grid
>
>  Procedure Load
>  Create Cursor Authors (Author i, Pub1 c(10), Pub2 c(10))
>  For ix=1 To 100
>    Insert Into Authors Values (Int(Rand()*10),'A','B')
>  Endfor
>  Locate
>  Thisform.AddProperty('nUser',3)
>Endproc
>
>  Procedure myGrid.AfterRowColChange
>  Lparameters nColIndex
>  *this.ReadOnly = !(eval(this.recordsource+'.Author') = thisform.nUser)
>  This.SetAll('Enabled',Eval(This.RecordSource+'.Author') = Thisform.nUser)
>  This.Columns(nColIndex).Text1.SetFocus()
>Endproc
>Enddefine
>
Cetin
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform