#Conversions
4 messages in this thread
Anyone know how to convert an integer to a string?
want to make a routine that will work on an object and all its instances, but I
need to be able to refer to the copies by the integer part of their name.
Thanks,
Daniel
Daniel:
>> Anyone know how to convert an integer to a string? <<
What you're looking for is a string function called STR$().
E.G.:
? STR$(5)
will print "5"
x = 45
? STR$(x)
will print "45"
>> want to make a routine that will work on an object and all its instances,
but I need to be able to refer to the copies by the integer part of their
name. << You might want to check out some of the scripts in section 18: many
of them contain similar routines to what you are trying to make. A good way to
save yourself work is to cannibalize other scripts.
Martin
Hi Daniel,
<< Anyone know how to convert an integer to a string? >>
Are you looking for Str$(x) or possibly Val(x$)? (Math,String and Logical
Functions in the New Features Guide)
>>Are you looking for Str$(x) or possibly Val(x$)? (Math,String and Logical
Functions in the New Features Guide)<<
There they are! I saw all the Sin,Cos, and Tan functions and skipped over the
rest. Thanks.