|
-
Jan 6th, 2003, 03:56 AM
#1
Thread Starter
Addicted Member
returning multiple result trough a function?
Hi
Does anyone here knows the best way to return multiple result trough a function?
The two ways i know is to pass the value byref or putting the result of the function in properties, is there any better way to do this?
Thanks
-
Jan 6th, 2003, 04:57 AM
#2
yay gay
yea
ur function can return a structure or an array
hope it helps
\m/  \m/
-
Jan 6th, 2003, 05:09 AM
#3
Thread Starter
Addicted Member
Hi thanks for the reply!
But can anyone please show me how to return a structure to the calling object in a class whithout directly exposing the structure
Thanks
-
Jan 7th, 2003, 02:49 AM
#4
Member
Public Structure personal
dim name as string
dim age as integer
end structure
private sub GetPersonal()
dim Mypersonal as new personal
Mypersonal=LoadPersonal()
end sub
private function LoadPersonal() as personal
dim k as new personal
with k
.name="Jason"
.age=23
end with
return k
end function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|