473,387 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Required the first part of string from right

198 100+
i have a string
c:\var\newdata\123456\123456_1.mdb
i want the first part of string from right side
l,e 123456_1.mdb

how is it possible please send me some code
Nov 15 '07 #1
2 1148
QVeen72
1,445 Expert 1GB
i have a string
c:\var\newdata\123456\123456_1.mdb
i want the first part of string from right side
l,e 123456_1.mdb

how is it possible please send me some code

Hi,

Use this :

Expand|Select|Wrap|Line Numbers
  1.     Dim str1 As String
  2.     Dim TArr
  3.     str1 = "c:\var\newdata\123456\123456_1.mdb"
  4.     TArr = Split(StrReverse(str1), "\")
  5.     MsgBox StrReverse(TArr(0))
  6.  
Regards
Veena
Nov 15 '07 #2
veer
198 100+
thanks
it is working because i am very confused over it



Hi,

Use this :

Expand|Select|Wrap|Line Numbers
  1.     Dim str1 As String
  2.     Dim TArr
  3.     str1 = "c:\var\newdata\123456\123456_1.mdb"
  4.     TArr = Split(StrReverse(str1), "\")
  5.     MsgBox StrReverse(TArr(0))
  6.  
Regards
Veena
Nov 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Chris H. | last post by:
Fellow .Netters, I have come to an impass trying to "hide" a column on a data grid - I'm sure it's a fairly simple thing (but so am I, that's why I'm stuck) Imagine if you will that I have a...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
7
by: Rich Grise | last post by:
OK, I don't know if this is Off-Topic for the group(s), because "QT" isn't "Pure C++", and Slackware is a distro, but those guys are sharp. :-) And I've crossposted to sci.electroncs.design because...
7
by: Parv | last post by:
I am impersoanting a user to an other domain. But while doing so i am getting A required privilege is not held by the client exception. I have tried with aal possible usernames and passwords...
6
by: pigeonrandle | last post by:
Hello, Does anyone know what RegEx i can use to extract the 'values' from an INSERT INTO ... VALUES ('one','two','three'). This is obviously a simple example because a value might have a -' <-...
7
by: Mike P | last post by:
I am trying to write my first program using threading..basically I am moving messages from an Outlook inbox and want to show the user where the process is up to without having to wait until it has...
4
by: Bob | last post by:
Hi all, I've got a table that I've imported and it has junk at the top of the table, so after import I run a delete query to remove the junk lines then I'm left with the field names I want for...
2
by: Bart | last post by:
Hi, i read several articles about serialization. I know now that it is a process of converting an object into a stream of data so that it can be is easily transmittable over the network or can...
4
by: Milan Krejci | last post by:
int first=15,latest=15; QString typ=NULL; std::map<int,std::string>::iterator i; for(i = SeznamPracovniDoby.begin(); i != SeznamPracovniDoby.end(); i++) { if (typ==NULL) typ=i->second.c_str(); if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.