Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide grid column
Message
De
23/02/2005 11:39:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/02/2005 11:28:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00989465
Message ID:
00989676
Vues:
68
>If i change row it is update, but if change column is not updated
>
>i am not working with table buffering, is a readwrite resulting cursor from a select statement.

If you change column it's not updated? Are you sure. Try this:
Public oForm
oForm = Createobject("myForm")
oForm.Show

Define Class myForm As Form
  DataSession=2
  Add Object myGrid As Grid

  Procedure Load
    Select * From ;
      (_samples+'data\customer') ;
      into Cursor crsTest Readwrite
    Use In 'customer'
  Endproc

  Procedure Init
    With This.myGrid
      For ix=1 To .ColumnCount
        With .Columns(m.ix)
          .AddObject("myTextbox","myTextBox")
          .CurrentControl="myTextbox"
          .myTextbox.Visible = .T.
        Endwith
      Endfor
    Endwith
  Endproc
Enddefine

Define Class myTextbox As TextBox
  Procedure LostFocus
    Messagebox(This.Parent.ControlSource + ":" + ;
      Transform(Evaluate(This.Parent.ControlSource)))
  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