Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

HOOKUPS

Getting 2 result from a function

This topic is 6680 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I got this function where i calculate some stuff........ public function(x as integer, y as integer) as integer calculate stuff..... result1 = blahblah result2 = blahblah "its actually coordinates i calculate" end function now i wanna use thoose 2 results somewhere else how do i call the results like thisthingy.height = result1 thisthingy.width = result2 could anyone give an example in visual basic syntax since thats what im using 4 this project thanx

Share this post


Link to post
Share on other sites
Advertisement
If you pass the x and y arguments as ByRef then they will have the new values after the function exits.

//Rickard

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!