Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
5*10
Posted - 09/23/2005 : 11:01:42 AM Origin Version (Select Help-->About Origin): 7G SR4 v.7.0552 Operating System: win2k
Hi,
just a short question
I run my OriginC function on different Computer,(don't panic all legal) but all have the same Operating System and the same Origin Version. But on the one Computer the convertion from integer variable to string variable works fine. On the other it doesn't work and i get strange signs like §, $, % but not the numbers i like to have like 36... . The methode I transform it is like this:
int i1 = 36; string str1=i1; out_str(str1);
Greets 5*10
3 L A T E S T R E P L I E S (Newest First)
Mike Buess
Posted - 09/25/2005 : 1:01:39 PM Does the machine on which your labelling fails also have 7.0 SR4? The ability to insert an integer directly into a string like you are doing might have been introduced in a service release. (Not sure about that.) In any case, this should work in all versions of Origin...
int i1 = 36; string str1; str1.Format("Temperatur: %dC",i1); out_str(str1);
Posted - 09/25/2005 : 12:44:29 PM Hi Pete, thank you for your answer, but that is not the problem. I want to label the integer value in an automatically build graph. The label is like: Temperatur: 36°C and the 36 is e.g.the integer value. By now, I do this by convert the integer value to a string value an label it with the Labtalk label command. And on the one computer it works and on the other it do not. So what I want to know is, if it is an accident that it works on the one machine but not on the others! And if it is, is there I correct way to solve this problem! Hope someone kann help me!!