Code covered by the BSD License  

Highlights from
HTML Indexer

image thumbnail

HTML Indexer

by

 

16 Aug 2004 (Updated )

automated multi-language html index, index for print, batch image scaling

dlgUpdTxt(strOrig, strInsert, index)
function strOrig = dlgUpdTxt(strOrig, strInsert, index)
% v.0.45    13.12.2003, noua
%           e chemata din IncearcaCeva ca sa update toate cimpurile multilang
%
%           insereaza strInsert in strOrig la pozitia index
%           basically ca sa nu copy paste/edit 10 rinduri pentru o mie de
%           butoane si sa gresesc
        
% strInsert vine din editbox > deblank(get(ctrl.legenda, 'string'));

if nargin<1 disp('dlgUpdTxt: no input'); strOrig = ' '; end;
[limbi, lungime] = size(strOrig);

if nargin < 2 strInsert = 'error: no string'; end;
lnew = size(strInsert,2);

if nargin < 3 index = limbi; end;
if lnew > lungime strOrig(index,lnew) = 'x'; end;

[limbi, lungime] = size(strOrig);
strOrig(index,(1:lnew))= strInsert;
strOrig(index,(lnew+1:lungime))= ' ';       
strOrig = deblank(strOrig);

Contact us