dgoulston
Hasn't Got A Clue
- Local time
- Today, 02:51
- Joined
- Jun 10, 2002
- Messages
- 403
all i want to do is seperate a string into bits of 4 characters. eg.
dim stringa as string
dim bita as string
stringa = "231832738127312"
while (stringa length) > 0 then
copy first 4 chars of stringa into bita
delete first 4 chars of stringa
write bita to table (i know how to do that bit)
end
basically all i need to know is how to read a string length and how to copy jus the first 4 characters into another varible and then delete them 4 characters from the string.
anyone help?
thanks in advance
DAL
dim stringa as string
dim bita as string
stringa = "231832738127312"
while (stringa length) > 0 then
copy first 4 chars of stringa into bita
delete first 4 chars of stringa
write bita to table (i know how to do that bit)
end
basically all i need to know is how to read a string length and how to copy jus the first 4 characters into another varible and then delete them 4 characters from the string.
anyone help?
thanks in advance
DAL