把变量定义中public就可以了。
如:public gStrUser as String 可以放在模块中,
直接访问.
放在窗体中则:
public  strUser as String 窗体名为frmSetup则通过frmSetup.strUser访问。