Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column class def: how to specify the textbox properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00987154
Message ID:
00987496
Vues:
39
But You can (AFAIK)
***** TEST.PRG
*****************
CREATE CURSOR Test (ITest C(10) NULL)
FOR asd = 1 TO 15
    INSERT INTO Test VALUES (IIF(asd%2==0,NULL,TRANSFORM(asd)))
NEXT
GO TOP

LOCAL m2 As Form
m2 = CREATEOBJECT("Form")
m2.AddObject("Grid1","Grid")
m2.Grid1.MemberClass = "MyColClass"
m2.Grid1.MemberClassLibrary = "Test.Prg"
m2.Grid1.AddColumn(1)
m2.Grid1.removeObject("Column1")
m2.Grid1.RecordSource = "Test"
m2.Grid1.Visible = .t.
m2.Show(1)

Define Class MyColClass As Column
  Add Object Text1 As TextBox WITH;
      NullDisplay = "***"

  Add Object Header1 As Header WITH;
      Caption = "AAAAAAAAAAA" 

  Sparse = .f.
Enddefine
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform