读书人

函数怎么返回多个值

发布时间: 2012-02-24 16:30:39 作者: rapoo

函数如何返回多个值?
网上调查过,方法有两种,但是具体实现不知道如何实现

1 传递 结构体

我查了很多资料,但都是两个窗体之间传递 结构体,没有函数的

http://topic.csdn.net/t/20020417/09/653229.html
http://topic.csdn.net/t/20050115/22/3728970.html


http://www.programmer-club.com.tw/ShowSameTitleN/pb/1655.html



2 用 REF

网上的资料是略略的提一下,没有任何实例

http://topic.csdn.net/t/20060119/13/4525408.html


请用实例指教一下,记得,是函数,不是窗体,谢谢

[解决办法]
return type 为 (None)
agrument type分别为:

SQL code
Pass By                   Argumnet Type              Argument Name--------------------------------------reference                   integer                      ai1reference                   integer                      ai2reference                   string                       as 

读书人网 >PB

热点推荐