Re: Convert a string to a number
"damien c. sadler" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
i would probably try using the int function on it rather than the number function. hth. regards, damien ----- Original Message ----- From: [email protected] To: [email protected] Sent: Tuesday, November 21, 2006 5:06 PM Subject: [AutoIt] Convert a string to a number Hey Gang, I have a script that is manipulating a list of IP addresses. I am trying to get the last octet and determine what the next one would be. I can get my list into an array. I can trim off what I don't want (the xx.xx.xx. piece) but the remaining piece is a string. I tried using Number but it returns zero. So how can I convert it back into a number? Thanks! [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]