I am having difficulty understanding the process of passing values in vb..
If you name a sub procedure (Subsum) in one event procedure can you call it in another using the sam ecaal statement? and do you have to use the same
parameter(byval-byref)? I am quite new to programming
Thanks
guins100 0 Newbie Poster
Recommended Answers
Jump to PostUmm ecaal statement???
OK, see if this helps.Dim nValue1 as Integer
Dim nValue2 as Integer
Dim nResult as IntegernValue1 = 5
nValue2 = 10
nResult = AddValues(nValue1, nValue2)Function AddValues(Paramater1 as Integer, Parameter2 as Integer) as Integer
AddValues = Parameter1 + Parameter2
Return …
All 4 Replies
Paladine 138 Master Poster Team Colleague
guins100 0 Newbie Poster
Comatose 290 Taboo Programmer Team Colleague
guins100 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.