Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-19-2014, 09:39 AM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Insert new key into appSettings.config

I want to be able to add a new key to the appSettings.config file. I can do the write xml and update existing entries no problem, but cannot add new lines? Any help would be much appreciated.

For example:

Before the add:
<appSettings>
<add key="DatasourceConnection" value="server" />
</appSettings>


After New Key added:
<appSettings>
<add key="DatasourceConnection" value="server" />
<add key="LDAPBinding" value="NEW KEY" />
</appSettings>
Reply With Quote
  #2  
Old 03-19-2014, 10:00 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
You would need to call MSXML directly to insert an element like that.
http://technet.microsoft.com/en-us/m...iptingguy.aspx
Reply With Quote
  #3  
Old 03-20-2014, 10:27 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
This is now supported in v8.6. See the attached sample.
Attached Files
File Type: bld xml.bld (1.3 KB, 2065 views)
Reply With Quote
  #4  
Old 03-20-2014, 03:33 PM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 12
Thanks for the quick response and I'm glad its been added to the latest release because I was having issues with the VB Script method. I will update my post as soon as I upgrade and test this out.
Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:06 PM.


Copyright © 1999-2023 Kinook Software, Inc.