counting the string
Posted: Thu Dec 12, 2002 3:25 pm
2 questions:
1) How do you count characters in a string? Use = count the number of places and use that number to determine the length of a <hr> html element.
2) How do you load the contents of a string into an array? I.e. the following string:
joe was here
I want loaded so that I can address as:
array[0] = 'j'
array[1] = 'o'
array[2] = 'e'
etc...
1) How do you count characters in a string? Use = count the number of places and use that number to determine the length of a <hr> html element.
2) How do you load the contents of a string into an array? I.e. the following string:
joe was here
I want loaded so that I can address as:
array[0] = 'j'
array[1] = 'o'
array[2] = 'e'
etc...