Ignore:
Timestamp:
Mar 13, 2009 4:10:44 PM (14 years ago)
Author:
ajj
Message:

Sundry changes...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/NIST_XML_v40.ipf

    r477 r481  
    289289        Variable dsNum 
    290290 
    291         SVAR title = root:myGlobals:gXMLLoader_Title 
     291        SVAR title = root:Packages:NIST:gXMLLoader_Title 
    292292 
    293293 
     
    297297        //Check for value when there are multiple datasets 
    298298        FindValue/TEXT="Title"/TXOP=4/Z meta 
    299         title = meta[V_Value][1] 
    300  
     299        title = TrimWS(meta[V_Value][1]) 
     300        print meta[V_Value][1] 
     301        print title 
    301302         //Check for Run value 
    302303         FindValue/TEXT="Run_"+num2str(dsNum)/TXOP=4/Z meta 
    303304        if (V_Value >= 0) 
    304                 title = title+" "+meta[V_Value][1] 
     305                title = title+" "+TrimWS(meta[V_Value][1]) 
     306                print title 
    305307        else 
    306308                FindValue/TEXT="Run"/TXOP=4/Z meta 
    307                 title = title+" "+meta[V_Value][1]       
     309                title = title+" "+TrimWS(meta[V_Value][1])       
     310                print title 
    308311        endif 
    309312 
     
    354357        DrawText 11,72,"Current Sample Title:" 
    355358        GroupBox group0 pos={8,55},size={484,50} 
    356         TitleBox tb_CurrentTitle,pos={150,57}, variable=:myGlobals:gXMLLoader_Title,fSize=12,frame=0     
     359        TitleBox tb_CurrentTitle,pos={150,57}, variable=root:Packages:NIST:gXMLLoader_Title,fSize=12,frame=0     
    357360        SetVariable sv_NewTitle,pos={11,77},size={476,18},title="New Sample Title" 
    358         SetVariable sv_NewTitle,fSize=12,value=root:myGlobals:gXMLLoader_Title 
     361        SetVariable sv_NewTitle,fSize=12,value=root:Packages:NIST:gXMLLoader_Title 
    359362        Button btn_SetNewTitle title="Set New Title",pos={150,110},size={200,20} 
    360363        Button btn_SetNewTitle proc=SetNewTitleButtonProc 
Note: See TracChangeset for help on using the changeset viewer.