Filehost.ro - gazduire fisiere
lisp2arx
Visual Programming for AutoLisp Mathématiques en programmation Lisp.. doc2cpp,doc2lsp, sld2lsp, bmp2dcl, free__GifCcapture for all-CAD'platforms..
Nou pe simpatie:
surender_lady
Femeie
25 ani
Arad
cauta Barbat
26 - 47 ani
lisp2arxReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
lisp2arx / Delphi , InnoPascal /

Delphi32 - PosEx or system.pos wiht position

Pagini: 1  
#1
admin
Administrator
Din: Bucharest
Postari: 523


Code:

//Inf=Delphi32 - PosEx or system.pos wiht position
Function Sho_PosInt(substr : ShortString;StartIndex:Integer;Const largeString : String;LimMax:Integer): Integer;
Var nlen,nth:Integer;
Begin Result:=RTCAN;
      if (length(LargeString)<1) then exit;
      Result:=RTREJ;
      if (length(substr)<1) then exit;
      if (StartIndex<1) then StartIndex:=1 else
      if (StartIndex>length(LargeString)) then
                  StartIndex:=1;
      if (LimMax<1) then LimMax:=kMaxInt;
      nth:=pos(substr,copy(LargeString,StartIndex,LimMax));
      result:=if_int(nth<1,0,StartIndex+nth);
End;



_______________________________________
http://www.puiubrat.3x.ro/lisp2arx/lisp ... O2UTM2.pdf

 
   
Pagini: 1  
Mergi la