| 发表于:2007-03-24 10:52:00 楼主 |
要让一个函数有返回值.如下. public function ifswap(first as integer, second as integer) as boolean '判断是否需要交换image中的图片 dim color1, color2, color3 as integer dim number_shap1, number_shap2 as number_property color1 = element_l(first \ 6, first mod 6).name color2 = element_l(first \ 6, first \ 6 + 1).name color3 = element_l(first \ 6, first \ 6 + 2).name end function 我无法在里面增加return false/true等.单独用return就可以. return后面不能接数值.这是怎么回事情.我在csdn上面看我这种写法案是没问题的. |
|
|
|
|