LOCAL nValor := 10.50
// The field "UNI_USU" is VARCHAR(10) NOT NULL Type
oRsUni:Fields("UNI_USU"):Value := IIF(nValor = 0.00,'',nValor)
oRsUni:UpDate()
LOCAL nValor := 10.50
oRsUni:Fields("UNI_USU"):Value := IIF(nValor > 0.00,'',nValor)
oRsUni:UpDate()
Rick Lipkin wrote:oRsFac:Fields("permnum"):Value := if(i->permnum = 0, '', i->permnum )
oRsFac:Fields("permnum"):Value := if(i->permnum = 0, , i->permnum )
UPDATE fac SET permnum = null WHERE permnum = 0
oRsFac:Fields("permnum"):Value := if(i->permnum = 0, nil, i->permnum )
or
oRsFac:Fields("permnum"):Value := if(i->permnum = 0, null, i->permnum )
#xtranslate NULL => VTWrapper( 1, nil )
...
...
// usage:
oRs:Fields(n):Value := NULL
oCmd:Parameters( n ):Value := NULL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 105 guests