Ignore:
Timestamp:
Jul 11, 2016 2:59:08 PM (6 years ago)
Author:
srkline
Message:

changes to handle an arbitrary run number, rather than insisting on 3 or 4 digits.

fix to SANS file catalog where the last file name was cleared from the table, if there are no extra non-raw data files present. not a typical case, but it can happen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf

    r1003 r1004  
    438438                Abort "wrong number of checkboxes GetEditedSetVarBoxes()" 
    439439        Endif 
     440         
    440441        //pass all as a text wave - so only one wave has to be passed (conversion 2x, though) 
    441442        //global is set to the changed value when entered. read others directly from the control 
     443         
    442444        //make sure the text label is exactly 60 characters long, to match VAX field length 
    443445        SVAR dum=root:Packages:NIST:VSANS:Globals:Patch:gPS1 
    444         String str60="", junk="junk"  
    445         str60 = PadString(junk,60,0x20) 
    446         if(strlen(dum) <= 60) 
    447                 if(strlen(dum) == 60) 
    448                    str60 = dum 
    449                 else 
    450                    str60 = PadString(dum,60,0x20) 
    451                 Endif 
    452         else 
    453                 //too long, truncate 
    454                 str60[0,59] = dum[0,59] 
    455         Endif 
    456          
    457         wt[0] = str60 
    458          
     446//      String str60="", junk="junk"  
     447//      str60 = PadString(junk,60,0x20) 
     448//      if(strlen(dum) <= 60) 
     449//              if(strlen(dum) == 60) 
     450//                 str60 = dum 
     451//              else 
     452//                 str60 = PadString(dum,60,0x20) 
     453//              Endif 
     454//      else 
     455//              //too long, truncate 
     456//              str60[0,59] = dum[0,59] 
     457//      Endif 
     458//       
     459//      wt[0] = str60 
     460        wt[0] = dum                     //with Nexus, no need to enforce 60 character field 
     461//       
    459462        Variable ii 
    460463        String baseStr="PV" 
Note: See TracChangeset for help on using the changeset viewer.