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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gimme ham on 5, hold the mayo

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
ahem.....

first of all, In lke to say WHATa GREAT FORUM!!!!!

fast prompt help, I added a link to my webpage

ok, heres my problem:

Id like to make a program to generate crossword puzzles...it would involve counting and identifying the words the user has inputted....

how could I count and identivy every separate letter?

also, plz direct me to a good help site 4 dummies to create my own bots on mIRC (someone said the COM statement is in order for these)

I appreciate any feedback, and if anyone knows what movie the subject line reads, KICKASS!!!!!!!

MrHam
 
Counting the letters in a word is easy. Use the LEN() function to test the length of the string the user keyed in. To identify the letters, you will need to move the string into an array. The following code might help you get started. It illustrates how to use the LEN() function and how to put a string into an array using the MID$() function.

CLS
DIM arr(15) AS STRING * 1

' Get word from user ...
INPUT s$

' Print the length of s$ ...
PRINT LEN(s$)

' Move s$ into an array ...
FOR i = 1 TO LEN(s$)
arr(i) = MID$(s$, i, 1)
NEXT i

' Print out the array ...
FOR i = 1 TO 15
PRINT arr(i)
NEXT i

Perhaps this will get you started.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top