On Nov 15, 2006, at 11:11 PM, Paul Levine wrote:

Thanks for the help.

Just on more stupid question. How do you properly convert a string to an
integer, just get the asc value of each character, put them into a
memoryblock using byte and get the Integer value?

How would I convert "macs" to an integer?

you could use a 4 byte memoryblock and set the stringvalue to "macs"

                dim m as new memoryblock(4)
                m.littleendian = false

                m.stringvalue(0,4) = "macs"
        
                return m.long(0)

This lets you control the endianness which is important with 4 char codes (OSTypes)

This is important if you are running on an Intel mac
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to