Jun 13, 2004 #1 lode Programmer Joined Nov 8, 2001 Messages 208 Location BE In my form i have a value from a textbox How can i pass this value to a module ? Looks simple but can't find it. Anybody ?
In my form i have a value from a textbox How can i pass this value to a module ? Looks simple but can't find it. Anybody ?
Jun 13, 2004 #2 chrissie1 Programmer Joined Aug 12, 2002 Messages 4,517 Location BE for one try using classes and not modules. but in both you declare public variables Code: class lode1 public var1 as string public sub teller(byval var2 as string) return var2 += var1 end sub end class and then this in your form Code: dim l1 as new lode1 l1.var1 = 1 textbox1.text = l1.teller(2) or you could loose the dim l1 if you do this Code: class lode1 public shared var1 as string public shared sub teller(byval var2 as string) return var2 += var1 end sub end class Christiaan Baes Belgium What a wonderfull world - Louis armstrong Upvote 0 Downvote
for one try using classes and not modules. but in both you declare public variables Code: class lode1 public var1 as string public sub teller(byval var2 as string) return var2 += var1 end sub end class and then this in your form Code: dim l1 as new lode1 l1.var1 = 1 textbox1.text = l1.teller(2) or you could loose the dim l1 if you do this Code: class lode1 public shared var1 as string public shared sub teller(byval var2 as string) return var2 += var1 end sub end class Christiaan Baes Belgium What a wonderfull world - Louis armstrong