Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing word

Status
Not open for further replies.

abdellatif99

Programmer
Jun 26, 2002
11
LY
i need your help to parse the single word?

example:
(geology - i would like to parse it in array.)

thanks for help











 
If you're wanting to parse the letters into an array this works:

l_cMyWord=ALLTRIM('Geology')
l_nCount=LEN(myword)
DIMENSION l_aMyArray(l_nCount)
FOR l_nPointer = 1 TO l_nCount
l_aMyArray(l_nPointer)=SUBSTR(l_cMyWord,l_nPointer,1)
ENDFOR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top