Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Mutible parameters
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Raknarg




PostPosted: Tue Apr 17, 2012 6:15 pm   Post subject: Mutible parameters

In turing, you can do something like this:

proc thing (var x : int)

and then when you used the procedure thing, you can change the parameter inside the procedure and it'll change the variable outside the procedure.

So is there a way to make subs with mutible parameters in vb?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Apr 17, 2012 6:21 pm   Post subject: RE:Mutible parameters

pass-by-value vs. pass-by-reference
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Raknarg




PostPosted: Tue Apr 17, 2012 6:22 pm   Post subject: RE:Mutible parameters

Could you explain a bit more?
Tony




PostPosted: Tue Apr 17, 2012 6:38 pm   Post subject: RE:Mutible parameters

this is the terminology that you want to understand and use, so that you can ask the question that you have in mind -- "pass by reference vb", which will point you to the answer available on http://msdn.microsoft.com/en-us/library/ddck1z30.aspx
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Raknarg




PostPosted: Tue Apr 17, 2012 6:58 pm   Post subject: RE:Mutible parameters

Alright, thanks
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: