Re: Splitting a string into two pieces

From: Sylvia Murphy (murphys AT XXXXXX)
Date: Thu Sep 12 2002 - 14:29:43 MDT

  • Next message: Sylvia Murphy: "NCL and gsn_panel"

    scott,

    you can do this:
    if y is "yyyy zzzz"

    x=stringtocharacter(y)
    title= charactertostring(x(0:3))

    basically you convert the string to a character array so that you can
    subscript it, then convert the sub-array back to a string.

    sm

    ******************************************************
    Sylvia Murphy EML: murphys@ucar.edu
    NCAR CGD/CAS PHN: 303-497-1720
    1850 Table Mesa Dr FAX: 303-497-1333
    Boulder, CO 80305

    WEB: http://www.cgd.ucar.edu/csm/support/
         http://www.cgd.ucar.edu/csm/support/CSM_Graphics/

    ******************************************************

    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Thu Sep 12 2002 - 17:09:03 MDT