Cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the expressicon "sprint( "buffer1",i)"?

Valued Contributor
Valued Contributor

Hello,everyone!

I have a problem when I program a method : I dont know how to use "sprint("buffer1",i)" ,here,the type of "i" is an integer.Even though I had searched from "context help" I still cannot find useful information. I hope you can teach me how to use "sprint("buffer1",i)" and explain the meanning of  the "sprint("buffer1",i)",It's much better if you can give an example.

 

 

 

2 REPLIES

Re: How to use the expressicon "sprint( "buffer1",i)"?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Mark,

The sprint function is the same as the to_str function. sprint is just the old name.

All the function does is to convert all the arguments into a concatenated string. So if you execute to_str(2.3,", ", 4) you will get the string "2.3, 4".

Or in your case if let's say the variable i is 4 you will get the string "buffer14".

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: How to use the expressicon "sprint( "buffer1",i)"?

Valued Contributor
Valued Contributor

Hi!Ralf,

   I understand how to use it . I'm  greatly appreciated for your help.