Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question in grid.when()
Message
From
05/04/2004 10:16:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/04/2004 09:52:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00892167
Message ID:
00892256
Views:
24
This message has been marked as the solution to the initial question of the thread.
>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
Ç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