[Thread Prev] [Thread Next]
Hi,
Well, try:
show member? "c "abcde
show member? "c [a b c d e]
both will report "true. Therefore,
if member? "c [a b c d e] [dowhatever]
As for "placing in the middle position", I assume you mean something like
make "newlist placethisatthatpositioninthatlist "c 3 [a b d e]
then (sorry, this proc looks really hard - explaining it takes a full page)
to placethisatthatpositioninthatlist :thingtoplace :position :targetlist
if :position = 1 [op fput :thingtoplace :targetlist]
op fput first :targetlist placethisatthatpositioninthatlist :thingtoplace
:position - 1 bf :targetlist
end
try:
make "newlist placethisatthatpositioninthatlist "c 3 [a b d e]
show :newlist
[a b c d e]
Good luck,
Alain
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: March 2, 2007 3:29 PM
To: askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: MIA, Ask an Expert: hangman questions
This is an automatic message sent from the web form at:
http://mia.openworldlearning.org/howdoi.htm
from: Anonymous
date: Fri Mar 2 13:28:32 2007
platform: PC
version: MicroWorlds Pro
How do I search for a character in the middle of a string.
For a game of hangman.
How do I place the guessed character in the middle position.
Random Word CAT
Character guessed A
Hint after guessed letter *A*
Thanks!!!
Previous by thread:
MIA, Ask an Expert: hangman questions
Next by thread:
RE: MIA, Ask an Expert: hangman questions
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|