QSRules and VB.NET

Nov 18, 2005 1 Replies

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.


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.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required