Changeset 231 for trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/cutcmd.pro
- Timestamp:
- 03/19/07 18:15:51 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/WIDGET/AUTOUR_de_XXX/cutcmd.pro
r192 r231 1 1 ;+ 2 ; 2 3 ; @file_comments 3 ;4 4 ; 5 5 ; @categories 6 6 ; 7 ;8 7 ; @param WIDCMD 9 ;10 8 ; 11 9 ; @param TOREAD 12 10 ; 13 ;14 11 ; @param NUMBEROFREAD 15 ;16 12 ; 17 13 ; @param PREFIX 18 14 ; 19 ;20 15 ; @param NAMEEXP 21 ;22 16 ; 23 17 ; @param ENDING 24 18 ; 25 ;26 19 ; @returns 27 ; 28 ; 20 ; 29 21 ; @uses 30 ; 31 ; 22 ; 32 23 ; @restrictions 33 ; 34 ; 24 ; 35 25 ; @examples 36 ; 37 ; 26 ; 38 27 ; @history 39 ; 40 ; 41 ; @version 28 ; 29 ; @version 42 30 ; $Id$ 43 ; 31 ; 44 32 ; @todo 45 33 ; seb 46 34 ; 47 35 ;- 36 ; 48 37 PRO cutcmd, widcmd, toread, numberofread, prefix, nameexp, ending 49 ;50 38 ; 51 39 compile_opt idl2, strictarrsubs 52 40 ; 53 dummy = where(byte(widcmd) EQ (byte('"'))[0], nbdblquote) 41 dummy = where(byte(widcmd) EQ (byte('"'))[0], nbdblquote) 54 42 CASE 1 OF 55 43 nbdblquote MOD 2: stop ; odd numbers are impossibles... … … 72 60 IF n_elements(separator) NE n_elements(other) THEN stop 73 61 widcmd = '' 74 FOR i = 0, n_elements(other)-1 DO BEGIN 62 FOR i = 0, n_elements(other)-1 DO BEGIN 75 63 IF isnumber(other[i]) LT 1 THEN other[i] = '"' + other[i] + '"' 76 64 widcmd = widcmd + separator[i] + other[i] 77 65 ENDFOR 78 66 ; print, widcmd 79 END 67 END 80 68 ENDCASE 81 69 … … 83 71 IF strpos(widcmd, '"') EQ 0 THEN start = 0 ELSE start = 1 84 72 nameexp = cutted[start:*:2] 85 numberofread = n_elements(nameexp) 73 numberofread = n_elements(nameexp) 86 74 IF toread GE numberofread then begin 87 75 dummy = report('toread cannot be larger than numberofread')
Note: See TracChangeset
for help on using the changeset viewer.