... } ) si nAt es distinto de cero, entonces algún GET cambió Si las 50 variables pertenecen a un array, entonces puedes hacer: nAt = AScan( aVars, { | uValue, nIndex | oDlg:aControls[ nIndex ]:VarGet() != uValue } )
... PRIVATE aSay :={"ID" ,"Nombre","Fecha"} PRIVATE aVars:={"cId","cName" ,"dDate"} MSGINFO(cId_User) IF !Empty(cId_User) MsgAlert(cId_User) GO TOP LOCATE FOR FIELD->USR_ID=cId_User ...
... cId:=SPACE(03),cName:=SPACE(100),dDate:=DTOC(DATE()),lActive:=.T. PRIVATE aSay :={"ID" ,"Nombre","Fecha"} PRIVATE aVars:={"cId","cName" ,"dDate"} IF !Empty(cId_User) MsgAlert(cId_User) GO TOP LOCATE FOR FIELD->USR_ID=cId_User cId ...
... PRIVATE aSay :={"ID" ,"Nombre","Fecha"} PRIVATE aVars:={"cId","cName" ,"dDate"} IF !Empty(cId_User) MsgAlert(cId_User) GO TOP LOCATE FOR FIELD->USR_ID=cId_User cId ...
... PRIVATE aSay :={"ID" ,"Nombre","Fecha"} PRIVATE aVars:={"cId","cName" ,"dDate"} IF !Empty(cId_User) MsgAlert(cId_User) GO TOP LOCATE FOR FIELD->USR_ID=cId_User cId ...
Thanks for the tips. I just found why the footers were missing. The first line displayed has character value " " in lieu of 0. So the AEval( oBrw1:aCols, { |o| o:cDataType := 'N' }, aVars[ 1 ] + 2 ) should resolve.
... me llega otra cosa diferente (&wq78Ç), algunos valores del peso pero otros no llegan y caracteres extraños. FUNCTION CapPes_Des(aAlias,aVars) LOCAL cCad cCad := "" // abre puerto IF !AbrePu_Des() RETURN (NIL) ENDIF f_info("Ahora ponga el articulo en la bascula") ...
... think I would want to risk using a hash table without knowing the answer to how collisions are handled. Also, I found that syntax used by Marizio (aVars) confusing. This normally represents an array and yet here it is holding a hash table which I have also seen refered to as an object in the literature. ...
So aVars := {=>} is an array of hashes? No, it is a single hash, that is essentially an array indexed by strings instead of numeric values. And can you also explain this syntax? aVars[FIELDNAME(nX)] := FieldGet(nX) I am ...
Enrico, No, it is the regular syntax required to initialize an empty hash (ie. similar to aVars := {} for arrays). So aVars := {=>} is an array of hashes? And can you also explain this syntax? aVars[FIELDNAME(nX)] := FieldGet(nX) I am guessing that it is creating ...