; String operations
pro ex23
trees=['Beech','Birch','Mahogany','Maple','Oak','Pine','Walnut']
A = STRUPCASE(trees); uppercase of trees
HELP, A; array size and type
PRINT, trees; display tree value
PRINT, A ; display uppercase values
B = 'This is '+'a concatenation example.'
PRINT, B
PRINT, "This is a Multi-line" $
+ "string concatenation example."
names = trees + [REPLICATE(',',N_ELEMENTS(trees)-1),'']
PRINT, names
end
; String operations
pro ex23
trees=['Beech','Birch','Mahogany','Maple','Oak','Pine','Walnut']
A = STRUPCASE(trees); uppercase of trees
HELP, A; array size and type
PRINT, trees; display tree value
PRINT, A ; display uppercase values
B = 'This is '+'a concatenation example.'
PRINT, B
PRINT, "This is a Multi-line" $
+ "string concatenation example."
names = trees + [REPLICATE(',',N_ELEMENTS(trees)-1),'']
PRINT, names
end
No comments:
Post a Comment