473,411 Members | 2,196 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,411 software developers and data experts.

How to break a data in parts.

Ali Rizwan
925 512MB
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
Oct 8 '07 #1
3 926
kadghar
1,295 Expert 1GB
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

Expand|Select|Wrap|Line Numbers
  1. dim Str1 as string
  2. dim Str2 as string
  3. str1= "APD12/09/2007F550R12"
  4. Str2 = mid(str1, instr(str1,"F") + 1, instr(str1,"R") - instr(str1,"F") - 1)
hth
Oct 8 '07 #2
Ali Rizwan
925 512MB
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

Expand|Select|Wrap|Line Numbers
  1. dim Str1 as string
  2. dim Str2 as string
  3. str1= "APD12/09/2007F550R12"
  4. 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
Oct 8 '07 #3
Ali Rizwan
925 512MB
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

Expand|Select|Wrap|Line Numbers
  1. dim Str1 as string
  2. dim Str2 as string
  3. str1= "APD12/09/2007F550R12"
  4. 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
Oct 8 '07 #4

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

Similar topics

5
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...
0
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...
3
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...
3
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.
8
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...
13
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...
1
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...
7
geolemon
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)" & _ ...
2
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...
0
BarryA
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...
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
marktang
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,...
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...
0
tracyyun
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...
0
isladogs
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...
0
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...

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.