Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question in grid.when()
Message
De
05/04/2004 10:16:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/04/2004 09:52:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00892167
Message ID:
00892256
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform