Print Page | Close Window

Split a string into 4 parts

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: QuickTest Pro @ OneStopTesting
Forum Discription: QuickTest Pro is a fresh approach to automated software and application testing that addresses testing needs of both business analysts and Quality Assurance professionals.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=5666
Printed Date: 06Feb2025 at 1:58am


Topic: Split a string into 4 parts
Posted By: ram7vasu
Subject: Split a string into 4 parts
Date Posted: 06May2008 at 4:40am
Hi All,
 
Any String of 16 charcters, split and print group of 4 charcters
 
Ex: MyString = RAM123456789soft
 
result:
RAM1 
2345
6789
soft
 
Advance Thanks Smile


-------------
RAM SAKSOFT



Replies:
Posted By: ram7vasu
Date Posted: 08May2008 at 11:43pm
 
MyString = "RAM123456789SOFT"
 
For i =1 to 16 steps 4
 
MsgBox mid (MyString, i,4)
 
Next
 
Smile


-------------
RAM SAKSOFT



Print Page | Close Window