Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Wish: this.setall('inputmask', this.child.inputmask
Message
De
16/05/2003 11:13:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00789239
Message ID:
00789255
Vues:
24
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>Is this possible or is there a programatical alternative.
>
>grid.init()
>
this.setall("inputmask", "this.child.inputmask", "column")
>
>or
>
>
this.setall("sparse", "iif(this.child.class = 'txtcurrfld', .F., .T.)", "column")
>
>Please advise.

Hierarchically column sets inputmask unless bound=.f.
However I think you can use the same logic you use in yur txtbox class to get inputmask and apply to column instead (ie: dbgetprop()).

SetAll somewhat awkward to do this. It gets the value once and applies to given classes. What you need is soemthing like this (per column) :
for each oColumn in this.Columns
 if pemstatus(oColumn,'txtcurrfld',5)
   with oColumn
     .InputMask = .txtCurrFld.Inputmask
     .CurrentControl = 'txtCurrFld'
     .Sparse = .F.
   endwith
endfor
PS: I know I know no error check.
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