Hi all,
I have a text in a textbox which lokks like this APD12/09/2007F550R12
A = Show fee status starts P = Paid U = UnPaid
D = Date Starts 12/09/2007 = Date
F = Fee Starts 550 = Amount of Fee paid
R = Recipt no Starts 12 = Recept number
Now i want to show P in text1 12/09/2007 in text2 550 in text3 12 in text4
How can i split this data by using key words A,D,F,R
Help plz
Thanx
3 926
Hi all,
I have a text in a textbox which lokks like this APD12/09/2007F550R12
A = Show fee status starts P = Paid U = UnPaid
D = Date Starts 12/09/2007 = Date
F = Fee Starts 550 = Amount of Fee paid
R = Recipt no Starts 12 = Recept number
Now i want to show P in text1 12/09/2007 in text2 550 in text3 12 in text4
How can i split this data by using key words A,D,F,R
Help plz
Thanx
use the instr function
will give you back the position of the first apearance of a string in a string, to get the fee do something like - dim Str1 as string
-
dim Str2 as string
-
str1= "APD12/09/2007F550R12"
-
Str2 = mid(str1, instr(str1,"F") + 1, instr(str1,"R") - instr(str1,"F") - 1)
hth
use the instr function
will give you back the position of the first apearance of a string in a string, to get the fee do something like - dim Str1 as string
-
dim Str2 as string
-
str1= "APD12/09/2007F550R12"
-
Str2 = mid(str1, instr(str1,"F") + 1, instr(str1,"R") - instr(str1,"F") - 1)
hth
Thanx for the reply
i m using another code for this purpose but in that there is a limit for fee.
I m also using the mid() function.
I ll try this code and reply you in a few minutes be logeed in
Thanx
use the instr function
will give you back the position of the first apearance of a string in a string, to get the fee do something like - dim Str1 as string
-
dim Str2 as string
-
str1= "APD12/09/2007F550R12"
-
Str2 = mid(str1, instr(str1,"F") + 1, instr(str1,"R") - instr(str1,"F") - 1)
hth
Thanx alot kadghar
This code is working
Thanx a lot again
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Joe |
last post by:
I need to connect to 10 web sites to grab content from them. I would
like to connect to each site simultaneously so that I can obtain the
data as fast as possible.
I am familar doing this with...
|
by: Redd |
last post by:
The following is a technical report on a data modeling project
that was recently assigned to me by my professor. I post it
so that anyone else who is studying databases and data modeling
can have...
|
by: Seamus Hand |
last post by:
I am trying to write a component maintenance application and have
tables as follows
Part
Part #
Part Description
Active (y/N)
as these parts are obsoleted, ie Active changes to N, then I...
|
by: yezi |
last post by:
Hi:
I want to break a string like "30 23 date" into 3 parts in C:
int 30;
int 23;
char string date;
Do not know how to get it.
|
by: Ron |
last post by:
Hi all:
I have an asp.net (using SQLserver) page in a class registration
application where a supervisor can register for multiple employees.
If there are no errors, duplicates the program flows...
|
by: dm1608 |
last post by:
I know all the hype right now from Microsoft is how much easier, faster, and
less code ASP.NET 2.0 provides over previous versions. I'm puzzled by this
as I could turn out an classic ASP webpage...
|
by: Rolf Welskes |
last post by:
Hello,
I have a large web which has PartA, PartB, PartC and MainPart.
MainPart WebPage01 ... WebPage_n
PartA ....
PartB WebPageB01 ... WebPageB_m
PartC ...
So I would like to do the...
|
by: geolemon |
last post by:
I'm getting an error, I'm not seeing the cause:
Debug highlights this segment of code (I just snipped a portion here):
strProc = "Insert into Parts (MfgPN, Manufacturer, Description)" & _
...
|
by: chharles |
last post by:
Hi I need to make a client socket - server in c + + for Linux.
The server must do three things:
1 -) When the client sends a file server lowercase words you must return the file with words...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |