Changeset 142 for trunk/SRC/ToBeReviewed/STRING/string2struct.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STRING/string2struct.pro
r134 r142 11 11 12 12 ;+ 13 ; NAME:14 ; stringToStructure15 13 ; 16 ; PURPOSE:17 ; 18 ; 19 ; 14 ; @file_comments 15 ; Takes an input string set up as keywords and returns an anonymous structure. 16 ; This is particularly useful for taking keywords entered by a user in a text 17 ; field and passing then to other routines. 20 18 ; 21 ; CATEGORY:22 ; 19 ; @categories 20 ; Utility 23 21 ; 24 ; CALLING SEQUENCE:25 ; extra=stringToStructure('xrange=[0,10],linestyle=2')26 ; plot,findgen(100),_extra=extra22 ; @param STRVAL {IN}{REQUIRED} 23 ; String set up as keywords. Keywords require a little special treatment. Such as 24 ; plot,findgen(100),_extra=stringToStructure('title="testing"') 27 25 ; 28 ; INPUTS:29 ; String set up as keywords. Keywords require a little special treatment. Such as30 ; plot,findgen(100),_extra=stringToStructure('title="testing"')26 ; @RETURNS 27 ; This function returns the string as an anonymous structure. If an 28 ; error was found then this function returns a structure with a null field. 31 29 ; 32 ; KEYWORD PARAMETERS: 33 ; 34 ; None 35 ; 36 ; OUTPUTS: 37 ; This function returns the string as an anonymous structure. If an 38 ; error was found then this function returns a structure with a null field. 39 ; 40 ; COMMON BLOCKS: 41 ; None. 42 ; 43 ; EXAMPLE: 30 ; @examples 44 31 ; The code below creates a widget that uses this routine. 45 32 ; pro tPlot,event … … 62 49 ; end 63 50 ; 64 ; MODIFICATION HISTORY:51 ; @history 65 52 ; Written by: 66 53 ; RLK, Ronn Kling Consulting. … … 68 55 ; www.rlkling.com 69 56 ; May, 1999 57 ; 58 ; @version 59 ; $Id$ 60 ; 70 61 ;- 71 62
Note: See TracChangeset
for help on using the changeset viewer.