No doy con la actualización del valor de una variable en un calculo.
Necesito que la variable "Tot", muestre el producto de (Can * Uni) en la validación, que puede ser actualizada por los Get respectivos.
Muchas gracias y muchos saludos.
Antonio
- Code: Select all Expand view
@ 130,125 GET oCan Var Can SIZE 050,22 PIXEL OF oDlg3 PICTURE "9,999" COLOR RGB(0,0,128) FONT oFonte1 UPDATE;
VALID IF(!(Can>0),(MsgStop("Cantidad debe ser Mayor a 0"), ((Tot:=Can * Uni),oTot:SetText(Tot),oTot:UpDate(), oTot:Refresh()),.F.), .t. )
@ 160,125 GET oUni Var Uni SIZE 080,22 PIXEL OF oDlg3 PICTURE "99,999,999" COLOR RGB(0,0,128) FONT oFonte1 UPDATE
@ 190,125 SAY oTot Var Tot SIZE 080,22 PIXEL OF oDlg3 PICTURE "99,999,999" COLOR RGB(0,0,128) FONT oFonte1 Border