Forum Moderators: open
how do i fix it to 3.90, and put a £ in front of it so its displayed £3.90, concatenating it to the front is no good as i need negative amounts to be shown as -£3.90 not £-3.90
Thank you
function myFormat ( intAmount )
dim sTemp
sTemp=formatNumber(intAmount,2)
if intAmount < 0 then
sTemp ="-£" & formatNumber(abs(intAmount),2)
else
sTemp ="£" & formatNumber(intAmount,2)
end if
myFormat =sTemp
end function msgBox myFormat (-10.1)
msgbox myFormat (-10)
msgbox myFormat (1)
msgbox myFormat (25.2)