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.comwww.prenia.comWeblog: blogs.prenia.com/cathi