playMaker

Author Topic: Error Converting String To Int[SOLVED]  (Read 1649 times)

RC

  • Full Member
  • ***
  • Posts: 148
Error Converting String To Int[SOLVED]
« on: September 09, 2015, 04:47:11 PM »
Hello,

I'm trying to grab an input field with all numbers and convert it to int.
When I run the project I get a lot of
"FormatException: Input string was not in the correct format"

Can someone help me out. Thank you.
« Last Edit: September 14, 2015, 03:13:35 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Error Converting String To Int
« Reply #1 on: September 10, 2015, 10:43:15 AM »
Hi,

 What's the format value you are trying to use?

 Bye,

 Jean

RC

  • Full Member
  • ***
  • Posts: 148
Re: Error Converting String To Int (Solved)
« Reply #2 on: September 11, 2015, 01:15:51 PM »
Hi, Jean

Got it fixed.

Before I had it grabbing input text field, store it to variable and then convert it. That gave me and error in the same state.

But when I made two state, 1st state grab text input set veriable. second state convert string to int. It work perfect now.

Thanks