(E-Mail Removed) wrote:
> thans for all your helps. but now its must to be giving this ritgh code
> mubber is 1694692055 but its had give me code number is in the
> mesedo.com like 1727991987 by them.. how can i do that.
Yes, I see that - the C# code:
> > > int upper = intc & '\x00df'; //Upper case the letter
.... does more than upper case the letter. It also modifies non-letters
like '.'. Instead:
function GenerateSiteId(const SiteName: string): Cardinal;
var
i: Integer;
begin
Result := 0;
for i := 1 to Length(SiteName) do
Result := Result * 101 + Ord(SiteName[i]) and $DF;
Result := Result mod Cardinal(High(Integer)) + 1;
end;
-- Barry
--
http://barrkel.blogspot.com/