如何用过程传递数组数量,VB与.net的不同????
在VB6.0的代码中,可以这样:
dim Str() as string
for i=1 to 5
str()=??
next i
call GetValue(dim Str() as string,nID as integer)
sub GetValue(dim Str() as string,nID as integer)
////
end sub
Str()的值可以在GetValue过程中传递,但在VB.net代码中,Str()传递到GetValue中时,为空.
如何解决这个问题,
我想的一个办法是把Str()定义成公用变量,但我VB6.0中用到很多这样的过程(现在想升级到.net),修改起来很麻烦,请各位大虾帮帮我
问题点数:20、回复次数:3Top
1 楼JJY1982(西贝)回复于 2005-07-05 23:47:59 得分 0
没太明白楼主的意思。。。Top
2 楼dbspro(冷锋)回复于 2005-07-08 00:07:24 得分 10
dim Str() as string
for i=1 to 5
str(i-1)=i.tostring
next i
call GetValue(Str,nID)
sub GetValue(Str() as string,nID as integer)
////
end sub
Top
3 楼leeyeefeng2004(leeyeefeng)回复于 2005-07-08 00:38:43 得分 10
把VB6自动升级成dotNet...然后看看dotNet代码..哈哈Top




