Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Code to vb.net code
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
VFP Code to vb.net code
Divers
Thread ID:
00765518
Message ID:
00765518
Vues:
47
Can anybody change this code to vb.net
lparameters tcString, ;
	tcKey
local lnLen, ;
	lcKeyExpr, ;
	lcEncrypt, ;
	lnI, ;
	lnChar
lnLen     = len(tcString)
lcKeyExpr = tcKey
do while len(lcKeyExpr) < lnLen
	lcKeyExpr = lcKeyExpr + tcKey
enddo while len(lcKeyExpr) < lnLen
lcEncrypt = ''
for lnI = 1 to lnLen
	lnChar    = min(asc(substr(tcString, lnI, 1)) + ;
		asc(substr(lcKeyExpr, lnI, 1)) + lnI, 255)
	lcEncrypt = lcEncrypt + chr(lnChar)
next lnI
return lcEncrypt
Thanks
Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform