Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Function return values

Author
Message
Ammothief
13
Years of Service
User Offline
Joined: 21st Dec 2010
Location: Duluth, Minnesota, USA
Posted: 13th Jan 2011 01:35
Is it possible to return a user defined type from a function?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 13th Jan 2011 13:35 Edited at: 13th Jan 2011 13:35
I don't believe you can create UDT's in functions. That's why I always make mine in subroutines IE:


This would not work:


At least that's my understanding of it...

Frank C
14
Years of Service
User Offline
Joined: 3rd Jul 2010
Location: Houston TX
Posted: 13th Jan 2011 13:58
You cannot return a UDT from a function but you can change or set the values of the variables of a UDT from a function.

Login to post a reply

Server time is: 2024-11-24 08:34:50
Your offset time is: 2024-11-24 08:34:50