Advertisement

Getting 2 result from a function

Started by April 06, 2000 07:23 AM
2 comments, last by HOOKUPS 24 years, 5 months ago
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
If you pass the x and y arguments as ByRef then they will have the new values after the function exits.

//Rickard
Rick_Dangerous
Advertisement
Or you can pass types or objects.

============================
Daniel Netz, Sentinel Design
"I'm not stupid, I'm from Sweden" - Unknown
============================Daniel Netz, Sentinel Design"I'm not stupid, I'm from Sweden" - Unknown
Thanx hehe i think i got it appreciate the help dudes ;-)

This topic is closed to new replies.

Advertisement