Michel,
To find the first occurance (similar to AT() in VFP) use
IndexOf(). To find the first occurence from the right (similar to RAT() in VFP) use
LastIndexOf(). I do not think there is an equivalent method to VFP's AT() function where you can specify the number of occurance in .NET (at least not that I have found), but it should be pretty easy to write and this might be done already in the VFP.NET toolkit like Bonnie sugested.
The equivalent of VFP's SUBSTR() is in .NET
SubString().
Hope this helps
Einar
>Anyone would know how to convert the following VFP line to VB.NET?
>
>
>SUBSTR(lcServer,1,AT("/",lcServer,3))
>
Semper ubi sub ubi.