我正在修改必须在VB6中运行的旧项目,并且我有OOP体验,但不是VB。VB6 - 调用潜在客户
无论如何,我认为这将是直截了当的,我需要添加数据到散列表。
我可以调用retreive数据函数,但不能调用set数据函数。
这里是设置数据功能(或子我猜)。
Sub SetSetting(Name As String, Value)
Member of MBCSettings.MBCSettings
Store the named setting in the current settings map
所以,如果我尝试设置这样的事情:
gobjMBCSettings.SetSetting("UserName", "223")
我得到:编译器错误,应为“=”
是我的对象破还是我失去了一些东西明显?谢谢。
尝试没有parens:'gobjMBCSettings.SetSetting“UserName”,“223”' – 2014-10-09 16:10:04
这很有效,谢谢!这种奇怪的语言。 – Rob 2014-10-09 16:15:01
另请参阅http://stackoverflow.com/questions/10107259/is-it-possible-to-call-a-vb-function-without-the-parenthesis和一些与此有关的其他问题 – MarkJ 2014-10-09 16:25:40