Quote:
When I type:
int var1 = txtTextBox->get_Text()->toInt32(###);
the ### wants an System::IFormatProvider. What is that and how can i use it to convert my string to an integer.
|
You probably want to change your code to:
Code:
int var1 = Convert::toInt32(txtTextBox->get_Text());
However a IFormatProvider is a class that will tell how you want the number formatted. That is will it include the sign, how about thousand separators, do you want a monetary symbol, etc.
The IFormatProvider is an optional parameter (if you use the static version of toInt32).
I hope that helps, an example of the code to set up an IFormatProvider is given at
page to the C++ example
graeme