Re: Covert int to string
Posted: Tue Aug 06, 2013 5:10 am
I too need to convert an int to a string. I will also need to convert the other way, i.e. a string to an int. After looking in the forum I have tried this:
void RecipeNumber_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
Globals.Tags.RecipeName.Value = Convert.ToString(Globals.Tags.RecipeNumber.Value);
}
I get a compilation error saying it is an ambguity between Convert.ToString(uint) and Convert.ToString(System.DateTime)
If I try this:
Globals.Tags.RecipeName.Value = System.Convert.ToString(5);
a "5" is displayed neatly on the Ix.
What am I doing wrong?
void RecipeNumber_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
Globals.Tags.RecipeName.Value = Convert.ToString(Globals.Tags.RecipeNumber.Value);
}
I get a compilation error saying it is an ambguity between Convert.ToString(uint) and Convert.ToString(System.DateTime)
If I try this:
Globals.Tags.RecipeName.Value = System.Convert.ToString(5);
a "5" is displayed neatly on the Ix.
What am I doing wrong?