lisp2arx
Visual Programming for AutoLisp Mathématiques en programmation Lisp.. doc2cpp,doc2lsp, sld2lsp, bmp2dcl, free__GifCcapture for all-CAD'platforms..
Lista Forumurilor Pe Tematici
lisp2arx | Reguli | Inregistrare | Login

POZE LISP2ARX

Nu sunteti logat.
Nou pe simpatie:
CosminaCSM pe Simpatie.ro
Femeie
23 ani
Bucuresti
cauta Barbat
23 - 39 ani
lisp2arx / Delphi , InnoPascal / Delphi32 - Convert Hexadecimal to Integer  
Autor
Mesaj Pagini: 1
admin
Administrator

Din: Bucharest
Inregistrat: acum 13 ani
Postari: 515


Code:

Function if_trimSurface(atoi:pchar):Boolean;
Begin result:=false; 
      if (atoi=nil) or (atoi^=#0) then exit;
      while (atoi^ in [#9,#10,#13,#32]) do 
          do begin inc(atoi);result:=true;End;
End;

Function php_hexdec(atoi:pchar;hextoint:shortstring;elseerror:integer):Integer;
Var axlock:integer;
Begin axlock:=0;
    if (atoi=nil) or (atoi^=#0) then atoi:=nil;
      if (length(hextoint)>1) then 
        Begin hextoint:=concat('$'+trim(hextoint));
              Val(hextoint, Result, axlock.h);
              if axlock= 0 then exit;
        End;
       if (false=if_trimSurface(atoi)) then exit;
       hextoint:=copy(strpas(atoi),1,127);
       Val(hextoint,result,axlock);
       if (axlock<>0) then result:=elseerror;
End;

php_hexdec(nil,'AFED',-100);


_______________________________________


pus acum 4 ani
   
Pagini: 1  

Mergi la