03-21-2013 03:13 PM
Since i am not good in C++ language I am not bale to undertsand this condition....i.e
Locals.faultlist+ = Str(locals.faultcode)+"/n"
could you pls explian how this works.
03-21-2013 03:24 PM
First, let us look at the right side of the equation. Look like a fault code (number?) is being turned into a string and then an End of Line is added to the end of the string. Now the += is a way to just add on to the value on the left. So what you are really getting is a string containing what was already in the faultlist with a new number and End of Line appended to it.
03-21-2013 03:45 PM
Thanks for your reply...
What does Str(Local.faultcode)+ indicates...i know you have mentione that this converts to string..pls let me know
03-21-2013 03:46 PM
both faultcode and faultlist is declared as string
03-21-2013 07:28 PM
the str(faultcode) converts the faultcode into a string. The + appends strings.