• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

How to retrieve a substring from a string in vb6.0

Hi,
Need to retrieve a substring from a string example:
\\Ac24\Client\Ab\DocImg\b\Zbes\NFL\A05JN.TIF
Need to retrieve NFL in vb6.0
Regards
0
RIAS
Asked:
RIAS
1 Solution
 
DhaestCommented:
Is the part always on the same place or any condition ?

http://www.vb6.us/tutorials/vb6-string-functions

Dim s As String
s = "\\Ac24\Client\Ab\DocImg\b\Zbes\NFL\A05JN.TIF"

Dim words() As String
words() = Split(s,"\")

YourString = words(ubound(words)-1)

Open in new window

0
 
RIASAuthor Commented:
Excellent mate!!!!works like a charm
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now