Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Code to vb.net code
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00765518
Message ID:
00765537
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform