<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ToBeReviewed/STRING/

tostr.pro

Convert an input in a string.

toptostr String

result = tostr(input)

Return value

a string

Parameters

input        in required

input can not contain or be of the type of: Complex floating, structure, Double-precision complex, Pointer, Object reference, Unsigned Integer, Unsigned Longword Integer, 64-bit Integer, Unsigned 64-bit Integer

Examples

IDL> help, tostr(1),tostr('a'),tostr(indgen(4)),tostr(['a','jkfjo']) STRING = '1' STRING = ''a'' STRING = '[0,1,2,3]' STRING = '['a','jkfjo']' IDL> print, tostr(['c''est bon','c''est bon']) ['c''est bon','c''est bon']

Version history

Version

$Id: tostr.pro 157 2006-08-21 09:01:50Z navarro $

History

Sebastien Masson (smasson@lodyc.jussieu.fr) 18/10/1999

Known issues

Restrictions

If keywdvalue is an array, it will be convert in a vector. Beware, this function has loops, ifs ad cases everywhere. So it can not be used by big keywords (with a lot of elements which are big arrays).

Statistics

McCabe cyclic 9
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.