Hi all,
how can I made this much more quicker ??
I want to test if the num-range is ok for
byte?-variables.
function test_byte?(byval by$ ) public
local a%
a%=val(by$)
if a%>255 then
function=255
elseif a%<0 then
function=0
else
function=a%
end if
end function
I`ve tested with on local error but I
get the always the err=6 Over... by 256 and
-1
Thank for help
Matthias Kuhn
------------------
how can I made this much more quicker ??
I want to test if the num-range is ok for
byte?-variables.
function test_byte?(byval by$ ) public
local a%
a%=val(by$)
if a%>255 then
function=255
elseif a%<0 then
function=0
else
function=a%
end if
end function
I`ve tested with on local error but I
get the always the err=6 Over... by 256 and
-1
Thank for help
Matthias Kuhn
------------------
Comment