[Gambas-user] (no subject)
vlahonick vlahonick
tsopanotragi at ...67...
Wed Apr 1 16:06:49 CEST 2009
Thanks you all for your replies....
For those that they propuse me to put "end if" at the end of the code of course i did that!!!!
In the screenshot i send you all it was just a part of the code,the theme of the screenshot was to show u the error.
If i didnt close the code with as many end if were needed the language itself would give me other error that end if are needed.
The code i wrote was completely correct,i double-triple checked it...
In the screenshot i repeat is just a very small part of my code because i want u to see the error and not the code...
Anyway i tried to rewrite my code with the Select Case expression but is more difficult because there are many cases and ONLY
one have to be triggered per time and which case should be triggered depends from what the user will wirte...
I didnt really succeded to do that with the Select Case expression.
So here i give u an example and if someone could help me by writing the same example with the select case expression it will be very helpful.
PUBLIC SUB Button1_Click
if textbox1.text = "a" then
textbox2.text = "b"
else
if textbox1.text = "b" then
textbox2.text = "g"
end if
end if
END
(like the example is my program's code-and the events are triggered when the user press the OK button)
ty in advance again...:D
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
More information about the User
mailing list