playMaker

Author Topic: Convert String to Int! Issue  (Read 2333 times)

hariprasadh10792

  • Playmaker Newbie
  • *
  • Posts: 8
Convert String to Int! Issue
« on: March 25, 2015, 01:32:56 PM »
Hi,

I am trying to convert a string to int. Everytime I use that action I get a Format Exception error: Input string was not in the correct format.

Is this an issue with the action or Is there a mistake in my project?

Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert String to Int! Issue
« Reply #1 on: March 25, 2015, 01:53:08 PM »
Hi,

 This is an issue with the format property of that action that is not compliant.

 Can you tell me what is the content of the string format and what can of convertion you expect to perform?


 Bye,

 Jean

hariprasadh10792

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Convert String to Int! Issue
« Reply #2 on: March 25, 2015, 01:59:44 PM »
Im trying to convert a playerprefs string to a local variable int.

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
Re: Convert String to Int! Issue
« Reply #3 on: February 21, 2016, 05:10:39 PM »
was this ever resolved?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Convert String to Int! Issue
« Reply #4 on: March 02, 2016, 03:55:57 AM »
Hi,

 for this to be solved, I need to know the format you used, and the original string. Then I can try to reproduce.

To learn more about string format rules:

https://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx

Bye,

 Jean