[AccessD] Parsing data

Jim DeMarco Jdemarco at hshhp.org
Wed Jul 9 11:05:56 CDT 2003


Might I suggest my cStringEx class (see Many to Many Feb. 2002 Issue http://www.databaseadvisors.com/newsletters.htm )?  You can get the values using it like this:

<snip>
dim oStringEx as New cStringEx
dim sVal1 as String
dim sVal2 as String
	ostringEx.Value = "test--data1"
	sVal1 = oStringEx.SubStringBefore("--") 'returns "test"
 	sVal2 = oStringEx.SubStringAfter("--") 'returns "data1"
</snip>

You'll have to write me offline for the most current version if you're interested though (the link to the code no longer works because Brinkster.com no longer gives direct access to files stored there).

HTH,

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Mark A Matte [mailto:markamatte at hotmail.com]
Sent: Wednesday, July 09, 2003 10:58 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Parsing data


Hello All,

In A97 I need to seperate some data into 2 fields...ex:
"test--data1"
test2--data"

How do I pull left and right of '--'?

Thanks,

Mark A. Matte

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the AccessD mailing list