Newbie please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
Author Message
 Newbie please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Can you please tell me how to do this when pushbutton1 is pushed it will
make editfield1 say 1 then if you push is agian is will make it say 2 and i
need to make it do that all the way to 5 please help
Thanks in advance


Sun, 23 Feb 2003 08:24:02 GMT  
 Newbie please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Quote:
>Can you please tell me how to do this when pushbutton1 is pushed it will
>make editfield1 say 1 then if you push is agian is will make it say 2 and
>i need to make it do that all the way to 5 please help

In pushbutton1's Action event:

dim foo as integer
foo=val(editfield1.text)
// Editfield1.text is whatever editfield1 is right now.
// It's text, so we use "val" to turn it into a number.

foo=foo+1
//We add one to it.

editfield1.text=str(foo)
// str(something) turns a number into a string.
// We do this because when we set an edit field to something, that something
has to be a string.

Now before anyone jumps on me, I know this can be done in a single line of
code, without a local variable. But I think this piece of code is more useful
for learning how REALbasic works...

------
Onyx, the game of {*filter*} exploration; Xero, the industrial magazine
of art, fiction and photography; and online photo gallery--all at
http://www.*-*-*.com/



Sun, 23 Feb 2003 09:39:26 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ***HELP***HELP***HELP***Please.

2. HELP !..PLEASE,PLEASe,PLEAse,PLEase,PLease,Please,please.....

3. ----------------------------------------------------*Question*-------------------------------------------------------------------------

4. Help please: various positioninterpolator-type-things

5. Please Help....................COBOL/400

6. Problem With Variables Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

7. Graphics help by newbie, please help

8. please, please, please, please, help

9. will someone please, please, please, please HELP me?!!

10. HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 
Powered by phpBB® Forum Software