Skip to content
⌘ NSIS Forum Archive

check for integer??

3 posts

sfranklin#

check for integer??

Hi,

given a string obtained from an install options screen is there a way of checking if the user entered a valid integer? The only way i could think of was MODULUSs it by 1 and seeing if it was 0. However this is far from ideal since 0 is a valid integer. Has anybody else attempted anything like this?

Steve