Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Wish: this.setall('inputmask', this.child.inputmask
Message
 
À
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:
00789652
Vues:
19
Thanks Cetin got around to try out the code and I put the following in the mygrid.init()
FOR EACH oColumn IN THIS.COLUMNS
	lccc = oColumn.CURRENTCONTROL
	
	oColumn.INPUTMASK        = oColumn.&lccc..INPUTMASK
	oColumn.FORMAT           = oColumn.&lccc..FORMAT
	oColumn.DYNAMICINPUTMASK = oColumn.&lccc..INPUTMASK

	*!*		IF pemstatus(oColumn,'txtcurrfld',5)
	*!*			WITH oColumn
	*!*				.INPUTMASK = .txtCurrFld.INPUTMASK
	*!*				.CURRENTCONTROL = 'txtCurrFld'
	*!*				.SPARSE = .F.
	*!*			ENDWITH
	*!*		ENDIF
ENDFOR
>>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
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform