ctype引用对象的问题
我在窗体启动时动态创建了一个textbox,名字为text1,在另一个按钮中我想用ctype引用它,dim text as textbox=ctype( ?,text)?这里应该怎么写啊?请教
你的目的是要再创建一个textbox控件并让它和text1一模一样?同类型间不需要转换
dim text as textbox=text1就可以了。
或者:dim text as textbox=ctype(text1,textbox),不过这只是六个指头挠痒,多那一道
