Hello,
I need some help for specific TXBrowse() example.
Is there way to create txbrowse for database from array (like old dbedit function)?
*----------------------------------------------------------------------------------
use customer
aHead:={}
aField:={}
aFormt:={}
aadd( aHead,"First" ); aadd( aHead,"Second"); aadd( aHead,"Amount" )
aadd( aField,"first" ); aadd( aField,"second"); aadd( aField,"amo" )
aadd( aFormt,"@!" ); aadd( aFormt,"@!"); aadd( aFormt,"@999,999.99" )
My idea is to create txbrowse in For...Next loop using down shown example. Is it possible?
For nFor=1 to 3
oCol:= oBrw:AddCol()
oCol:bStrData := { || customer->first } //??
oCol:bEditvalue := { || customer->first } //??
oCol:cEditPicture := aFormt[nFor]
oCol:cHeader := aHead[nFor]
oCol:nEditType := 1
next
Best regards,