ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Howto get data before and after comma?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
GinoTheCop



Joined: 30 Dec 2005
Posts: 9

PostPosted: Fri Dec 30, 2005 4:46 am    Post subject: Howto get data before and after comma? Reply with quote

I have data in rs which i pull from my database. The data in one field is like this;

13,14.2 (first is a comma and second is a fullstop)

I need to make calculations with certain formulas with these data. But my problem is; i need to get the values before the comma and after the comma.

So it should be like this:

13 X 14.2 = 184.6

How can i extract the values before and after the comma?

Thanks for your help...
_________________
Cuneyt Yetgin
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Mon Jan 02, 2006 2:00 pm    Post subject: Reply with quote

You can use the Split VBScript function.
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial