Changeset 163 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jan 3, 2011, 8:06:01 PM (13 years ago)
Author:
sommeria
Message:

civ and uvmat modified to deal with file names containing blanks (for Windows system)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r159 r163  
    447447%global filebase
    448448fileinput=[PathName FileName];%complete file name
    449 testblank=findstr(fileinput,' ');%look for blanks
    450 if ~isempty(testblank)
    451     msgbox_uvmat('ERROR',['The input file name ' fileinput ' contains blank character : This is not allowed. Please change name'])
    452     return
    453 end
     449% testblank=findstr(fileinput,' ');%look for blanks
     450% if ~isempty(testblank)
     451%     msgbox_uvmat('ERROR',['The input file name ' fileinput ' contains blank character : This is not allowed. Please change name'])
     452%     return
     453% end
    454454sizf=size(fileinput);
    455455if (~ischar(fileinput)||~isequal(sizf(1),1)),return;end
     
    986986        'Pick a file',RootPath);
    987987fileinput_1=[PathName FileName];%complete file name
    988 testblank=findstr(fileinput_1,' ');%look for blanks
    989 if ~isempty(testblank)
    990     msgbox_uvmat('ERROR',['The input file name ' fileinput_1 ' contains blank character : This is not allowed. Please change name'])
    991     return
    992 end
     988% testblank=findstr(fileinput_1,' ');%look for blanks
     989% if ~isempty(testblank)
     990%     msgbox_uvmat('ERROR',['The input file name ' fileinput_1 ' contains blank character : This is not allowed. Please change name'])
     991%     return
     992% end
    993993sizf=size(fileinput_1);
    994994if (~ischar(fileinput_1)||~isequal(sizf(1),1)),return;end
     
    50175017        'Pick an xml Object file',get(handles.RootPath,'String'));
    50185018fileinput=[PathName FileName];%complete file name
    5019 testblank=findstr(fileinput,' ');%look for blanks
    5020 if ~isempty(testblank)
    5021     msgbox_uvmat('ERROR','forbidden input file name: contain blanks')
    5022     return
    5023 end
     5019% testblank=findstr(fileinput,' ');%look for blanks
     5020% if ~isempty(testblank)
     5021%     msgbox_uvmat('ERROR','forbidden input file name: contain blanks')
     5022%     return
     5023% end
    50245024sizf=size(fileinput);
    50255025if (~ischar(fileinput)||~isequal(sizf(1),1)),return;end
Note: See TracChangeset for help on using the changeset viewer.