Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
create own software - Modules
PARAMETER TO A MODULE



01.jpg

Hye,
today we pass a variable from a function to another function

When we clic on a button, we give the string in a textbox to a message box.

Create a gui project with button1, a textbox1 and a label1.

Now create a module with this function inside that we code :

PUBLIC SUB monarcenciel(couleur AS String)
Message.Info(couleur & " may be is the color of the sky !")  
END

We create a "monarcenciel" function who display a message box with color

Now code the button_click fmain function :


02.jpg

PUBLIC SUB Form_Open()

END

PUBLIC SUB Button1_Click()
Module1.monarcenciel(TextBox1.Text)
END


04.jpg

Execute our program. When we clic on the button, we send color text by a string to the module1.arcenciel function.and display messagebox.
That's right !
regards


Creation date : 22/06/2009 @ 23:45
Last update : 02/10/2009 @ 21:30
Category : create own software
Page read 5850 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^