I have number as String.
How to convert that string to LongWord?
I know how to convert it to integer. But integer is to small for me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually you can use StrToInt.
The resulting value will overflow (i.e. become negative for values above $7fffffff, you might want to disable overflow checking), but when it is casted to longword, you will get the correct value.
Although the low level Val might be safer: