Scripting a text to binary digits converter
Jim Ault
jimaultwins at yahoo.com
Mon Jan 2 16:13:07 EST 2012
On Jan 2, 2012, at 3:54 PM, Bryan McCormick wrote:
> put baseConvert(theNum,10,2) into tBaseConverted
> if length(tBaseConverted) <8 then
> repeat until length(tBaseConverted)= 8
> put "0" before tBaseConverted
> end repeat
> end if
Alternative technique is to...
put char -8 to -1 of ("00000000" & tBaseConverted ) into tBaseConverted
Jim Ault
More information about the use-livecode
mailing list