Getting 2 result from a function
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
//Rickard
Rick_Dangerous
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
============================Daniel Netz, Sentinel Design"I'm not stupid, I'm from Sweden" - Unknown
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement