So you say the opposite is working with rowset.
Yes.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
So you say the opposite is working with rowset.
id_categ   TINYINT(2) UNSIGNED ZEROFILL NOT NULLoPlayer:SetDefault( 3, 0, TRUE )
? "Prueba", oPlayer:id_categ:= 22Error occurred at: 17/09/2020, 22:33:01
Error description: Error BASE/39 Escritura no autorizada: TDATAROW:id_categ
Args:
[ 1] = O TDATAROW
Por favor!
Como lo soluciono?... no puedo avanzar!
muchas gracias
Horizon wrote:Hi,
I think I found my mistake.
in oTb_YAPILAN:D_BOS(YENIKAYIT)
 oRec:SetDefault("YPL_BNK1", 3)
This procedure set my default variables to table fieldnames. I thought SetDefault is valid for FWMARIAROWSET like TDATAROW.
SetDefault also sets the fieldname as a readonly variable in FWMARIAROWSET Class.
Mr Rao. Can you confirm me? If it is I should change lots of lines in my application.
Edit :
 oRec:SetDefault("YPL_BNK1", 3, .F.)
I have changed to SetDefault like above and problem is solved. Mr. Rao, Can you confirm it?
Thanks.
id_categ TINYINT(2) UNSIGNED ZEROFILL NOT NULL
oQryPly:SetDefault( "id_categ", 3, FALSE ), ;
oPlayer := TDataRow():New( oQryPly ), ::AgrEditaPlayer( oPlayer, oBrw, nPosFld, oQryPly