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

ToBeReviewed/STRING/

tostr.pro

toptostr

result = tostr(input)

NAME: tostr (to string) PURPOSE: convertit un input en un string. CATEGORY: CALLING SEQUENCE: res=tostr(input) INPUTS: input ne peut pas contenir ou etre de type: Complex floating, structure, Double-precision complex, Pointer, Object reference, Unsigned Integer, Unsigned Longword Integer, 64-bit Integer, Unsigned 64-bit Integer KEYWORD PARAMETERS: none OUTPUTS: un string COMMON BLOCKS: SIDE EFFECTS: Si un element de input contient un tableau, il sera convertit en vecteur. RESTRICTIONS: attention cette fonction comporte des boucles, des if et des cases ds tous les sens. Elle ne doit donc pas etre utilisee avec des inputs de grosse taille (avec bcp d''elements et avec des elements etant de gros tableaux). EXAMPLE: 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']

Parameters

input       

Produced by IDLdoc 2.0.