QSRules and VB.NET

Hello,

I'm trying to build a new QSRules session in a VB.Net windows app, and I was hoping someone could lend me some insight on why this isn't working:

Dim QSSession As New QSRules.SessionClass Dim QSSessionType As QSRules.SessionType QSRules.SessionType.SessionType_NoPos Dim QSSessionStatus As QSRules.StatusCategoryEnum QSSessionStatus = QSSession.Build(1, QSSessionType) MsgBox(QSSessionStatus)

The QSSession.Build() line is causing a "Object variable or With block variable not set" error, and I'm stumped as to what's causing it.

Any help is appreciated.

Reply to
Jason Hunt
Loading thread data ...

Ok, it turns out you need to setup a new ConnectionInfo class, then do a QSSession.Database.OpenConnection(), and then you can do a Build().

Which doesn't solve my problem of trying to read the encrypted database settings from the registry.

Does anyone have any ideas on how to do that? I don't really want to be storing the exact same database settings separately.

Reply to
Jason Hunt

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.