Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Code to vb.net code
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00765518
Message ID:
00765537
Vues:
18
In additon to what Plamen sent you, check out the VFP Toolkit for .NET. It has over 225 different VFP functions and how to implement them in both C# and VB.NET.

http://gotdotnet.com/team/vfp

>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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform