Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of VFP AT()?
Message
From
03/05/2002 13:34:09
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
02/05/2002 15:28:53
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00652048
Message ID:
00652511
Views:
29
This message has been marked as a message which has helped to the initial question of the thread.
Just throwing in my 2 cents. A loop is going to be your best shot:
Public Function PositionOfNthOccurence (nthOccurence as Integer, SearchString as String, SearchSubString as String) as Integer
Dim i as Integer
   
   For i = 1 to nthOccurence
      PositionOfNthOccurence = Instr(SearchString, SearchSubString)
   Next 'i

End Function
Utlize the function and then in your code you only have to write the one line at least.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform