function hesapla(Base: Integer; Username: string): string;
var
S: string;
A: Integer;
begin
S := 'Error';
if (Base <> 0) and (Username <> '') then
begin
A := Base * Length(Username) + Ord(Username[1]) * 666;
S := IntToStr(A) + '-';
A := Base * Ord(Username[1]) * 123;
S := S + IntToStr(A) + '-';
A := Base + (Length(Username) * Ord(Username[1])) * 6613;
S := S + IntToStr(A);
end;
Result := S;
end;
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ Forumun 365. Üyesi
Hiç Bir Şey İnsan Kadar Yükselemez ve Alçalamaz
private function hesapla(Base as Integer; Username as string) as string
Dim S as string
dim A as Integer
S:="'Error"
if (Base <> 0) and (Username <> "") then
A = Base * Len(Username) + Ord(left(Username,1)) * 666
S = str(A) + '-';
A = Base * Ord(left(Username,1)) * 123;
S = S + str(A) + '-';
A = Base + (Len(Username) * Ord(left(Username,1))) * 6613;
S = S + Str(A);
end if
Result = S;
end sub
sadece ord fonksiyonun tam karşılığını bilemiyorum. belkide aynıdır.
<%
private function hesapla(Base as Integer; Username as string) as string
Dim S as string
dim A as Integer
S:="'Error"
if (Base <> 0) and (Username <> "") then
A = Base * Len(Username) + Ord(left(Username,1)) * 666
S = str(A) + '-';
A = Base * Ord(left(Username,1)) * 123;
S = S + str(A) + '-';
A = Base + (Len(Username) * Ord(left(Username,1))) * 6613;
S = S + Str(A);
end if
Result = S;
end sub
%>
<%
sayi=session("sayi")
kullanici("kullanici")
hesapla (sayi,kullanici)
repsone.write hasepla
%>
Hata Tipi:
Microsoft VBScript derleme hatası (0x800A03EE)
')' gerekli
/dene/hesapla.asp, line 13, column 30
private function hesapla(Base as Integer; Username as string) as string
-----------------------------^
şeklinde hata alıyorum..
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ Forumun 365. Üyesi
Hiç Bir Şey İnsan Kadar Yükselemez ve Alçalamaz