Hi All,
Was wondering if I am missing something here. I should be able to format the .ToString() function like this;
myValue.ToString("X2"); //Format value as hexidecimal with two digits
but for some reason iX developer will not allow it. Is this a namespace I have missed?
Formatting the .ToString() function
-
- Posts: 137
- Joined: Mon Jun 11, 2012 2:10 pm
Re: Formatting the .ToString() function
What is the type of myValue? different types support different formats.
If myValue is a tag, you need to specify
If myValue is a tag, you need to specify
Code: Select all
string hex = Globals.Tags.myValue.Value.ToString("X2");
Adam M.
Controls Engineer
FlexEnergy
Controls Engineer
FlexEnergy