[Thread Prev] [Thread Next]
Hi!
Ho! I see the problem. Your text box is called LOG1 (or LOG2...).
So, the dynamic primitives (based on the text box name) are:
SETLOG1
and
LOG1
So when you say
SETLOG
this corresponds to nothing.
You need to run something like SETLOG1
There are two solutions:
run se (word "settext 1) (word "" "bar)
That works, but it's awful Replace RUN by SHOW to visualize what's
going on.
Or, simpler:
tto word "setlog :n
ct pr answer
There you go! Yo seem to know what you're doing! Congrats!
AT
Le 08-03-31 à 18:27, Henry Wilson a écrit :
Here is the code, given there is a button which does newuser 1 and a
textbox called nusern
When I tried it, I had difficulty in getting it to set the content
of the text box. With the code below, when I tried it, it said "I
DONT KNOW HOW TO SETLOG"
to newuser :n
make "n nusern
newtext word "log :n
se -200 (200 -(:n * 25))
[100 25]
question [Set username]
setlog :n answer
setnusern nusern + 1
end
On Mar 31, 2008, at 1:40 PM, Alain Tougas wrote:
Hum!
Sorry, not enough info to help you.
Can you write, in plain English (pseudo code), what your button has
to do?
AT
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Henry
Wilson
Sent: Monday, March 31, 2008 1:21 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [MWForum] MIA, Ask an Expert: interactive text box
Hi, sorry to ask so many questions. Last one.
I am making a feature in my log in program so that you can create a
new user by clicking a button.
I cant think of the right way to do it
if you have any ideas please help.
Thanks
henry
On Mar 31, 2008, at 12:49 PM, Alain Tougas wrote:
Hi!
Sure!
Check onreadline in the Help, in the section about Text boxes, or in
the
vocabulary.
Basically, you run (only once) an instruction such as:
onreadline "text1 "run
and the text box named text1 will "run" each line when you type
something in
it and press Enter.
99% of people will do exactly that, but you may use any instruction:
onreadline "text1 "fd (be sure you type only numbers in that text
box)
onreadline "text1 "go (that, being a procedure name)
AT
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: Monday, March 31, 2008 9:44 AM
To: askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: [MWForum] MIA, Ask an Expert: interactive text box
This is an automatic message sent from the web form at:
http://www.openworldlearning.org/mia/howdoi.htm
from: henryhwilson@xxxxxxxxx>
date: Mon Mar 31 07:44:19 2008
platform: Mac OS10
version: MicroWorlds Ex
I had heard that you could make a text box the command center, so
typing
things in the text box will make it run programs just like the
command
center. How do I do this?
Previous by thread:
Re: MIA, Ask an Expert: interactive text box
Next by thread:
Re: MIA, Ask an Expert: interactive text box
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.
|