At 8:58 AM +0700 3/18/02, you wrote:
>Hi..List
>Any body know how to create many character by only one button like
>SMS on mobile phone.. when a user click send button it show message
>in text field..
>
>1st click .. type "A" and display in a textfield. 2nd click .. type
>"B". 3rd click type "C" ...and so on ..How to do something like
>this..?
It's pretty straightforward. I just used a counter (whichChar) to
sequence through the letters of the string.
----------------------------------------------------------
property myString, whichChar
on beginSprite me
member("displayText").text = ""
myString = "ABC"
whichChar = 1
put myString.length
end
on mouseDown me
member("displayText").text = myString.char[1..whichChar]
whichChar = (whichChar) mod (myString.length) + 1
end
----------------------------------------------------------
place the behavior on your 'SEND' button.
(& it assumes the Text member is named 'displayText')
It currently puts "A", then "AB", then "ABC" into the text member.
If you had wanted "A", then "B", then "C" instead, then
change 'myString.char[1..whichChar]' to 'myString.char[whichChar]'
hth
-Buzz
>
>Is it possible to send SMS from lingo to mobilephone?
probably, using an Xtra
>
>thanks in advance.
>Oh
>[To remove yourself from this list, or to change to digest mode, go
>to http://www.penworks.com/lingo-l.cgi To post messages to the
>list, email [EMAIL PROTECTED] (Problems, email
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with
>programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]