Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of VFP AT()?
Message
From
02/05/2002 15:24:05
 
 
To
02/05/2002 15:06:13
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00652048
Message ID:
00652075
Views:
26
>>>I need to get the location of the nth occurence of a string within another string (from the string end). This is simple in VFP - use RAT(). Is there a VB equivalent?
>>
>>Isn't there a Instr() function? See also Mid().
>
>Close, but no cigar. InStr() (specifically InStrRev(), in my case) returns only the 1st occurrence - although you can specify where you want it to start - but that still means walking the string backwards.
>
>Mid() is the equivalent of SubStr().

I haven't found a way to start at nth occurence. I checked my code and I am using a loop for that by manipulating the string in a temp string. Maybe someone knows a better way.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform