Computer Science Canada

INTSTR Syntax example

Author:  DemonZ [ Thu Jan 18, 2007 4:08 pm ]
Post subject:  INTSTR Syntax example

I am having a problem trying to use intstr in syntax, simply put, the help file in turing does not give you an example of it in use and I am now stuck trying to figure out how to use it. If anyone knows how please post an example so that I may better understand it. Thank you

Author:  Clayton [ Thu Jan 18, 2007 4:16 pm ]
Post subject:  Re: INTSTR Syntax example

intstr() takes an integer argument and changes it to a string. intstr() is a function, so you can output the result, assign it to a variable, etc.

Turing:

var int_to_string : string := intstr(5)
put int_to_string

Author:  DemonZ [ Thu Jan 18, 2007 5:03 pm ]
Post subject:  Re: INTSTR Syntax example

OK thanks now I understand how to use it


: