Share your opinion
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
|
create own software - Modules
PARAMETER TO A MODULE
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 : PUBLIC SUB Form_Open() END PUBLIC SUB Button1_Click() Module1.monarcenciel(TextBox1.Text) END 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 Reactions to this article
| QUICK MENU
SEARCH
LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS
visitors visitors online ARCHIVES GAMBAS 1/2
|