TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satheesh babu
NA
128
311.8k
dividing the string into sub strings
Dec 9 2008 2:11 AM
HI all,
Here i am retrieving mobile numbers from database like 919849098490(means 12 digit).And i am getting hundreds of numbers to a variable.
so i need to divide those numbers into 100 numbers into a string with commas.
means if i have 245 mobile numbers then i need to divide those numbers to three strings like first 100 numbers to str1,next hundred numbers to str2 and remaining 45 numbers to str3.
above situation is an example.
if i have mobile numbers like 850 then i have 9 string variables.
I want in a line(12 digit numbers string) also appended a comma for every 12 digit number except before first number and after last number.
Means 919849098490,919849098490,919849098490 here three 12 digit numbers are there and separated with two commas only.
i want like
str1 =919849098490,919849098490,919849098490
thank you.
Reply
Answers (
1
)
How to monitor user actions
how to load asp page in div tag