It leaves the last value of mprod_num and if I enter a new value it adds to the old value instead of removing it.
mprod_num is a character.
- Code: Select all Expand view RUN
REDEFINE GET oGet[1] VAR mprod_num ID 105 OF oDlg12 PICTURE "@K" UPDATE valid(lValue := fVal(mprod_num),if(lValue == .t.,(getprice(odlg12),getnumber(odlg12,oGet2),newData(oDlg12)),mprod_num := space(20)),.t.)