The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I convert a String to Int type?
#1
how can i convert a string to an int?
for example :
str = "1"
the string 1, will converted be converted to an integer which is 1.

in C# I think this is how you will do it.

string num ="1";
int x = Int.Parse(num);

but here in QM, is there a simple way to do that?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)