HomeActive Query Builderhowto save user config

howto save user config


Howto save changes a user made with editproperties? I'm using the activeX version of your component.
Mark Klein | email
October 21 2008, 10:31 AM
Use the IActiveQueryBuilderX.PropertiesXML property to save and restore all properties at once; use the IActiveQueryBuilderX.GetPropertiesXMLByTypes(ASystem, AVisual, ASQLBuilder: WordBool): WideString to save and restore required groups.

There are three groups of properties available: System (parsing and operational modes, visibility of database objects), Visual (colors, borders, tree options, visibility of panes) and SQL Builder options (SQL formatting rules, such as indents, line breaks, etc.).
Sergey Smagin | email
1 hour, 40 mins since original post
I can get it running. Writing to a file is working fine but reading again don't load the saved parameters.

Do you have an example or any additional informations for me?

Mark Klein | email
1 month since original post
The following code works fine:

Dim props As String

Private Sub miLoad_Click()
ActiveQueryBuilderX1.PropertiesXML = props
End Sub

Private Sub miSave_Click()
props = ActiveQueryBuilderX1.PropertiesXML
End Sub

Please send us a piece of code or a sample project where the problem appears to be.
Sergey Smagin | email
1 month since original post
This topic is closed