Go Premium for a chance to win a PS4. Enter to Win


I got a doubt regarding saving the xml file in visualbasic

Posted on 2001-06-22
Medium Priority
Last Modified: 2013-11-25
I created the elements in visualbasic which gives me finally xml file, my question is :

I declared a string variable and i'm saving the file like this.

obj.save string1,but i don't want to save the file to any local directory, it should remain in the string variable called string1(the whole xml file)and i want to use the string some where in the program to transfer.

It gives me Runtime erro(parameter not supported).

It accepts if i give the path to the string like:

string1 = "c:\temp\info.xml"
 but i don't want to save to directories, because every time i save it piles up with xml file, how do i store the file in string itself like:
obj.save string1 but no string1 = "c:\...."
Question by:vmandem
  • 2
LVL 75

Accepted Solution

Anthony Perkins earned 150 total points
ID: 6219882
Have you tried assigning it as follows:

string1 = obj.xml


Expert Comment

ID: 6220026
ac is right!

Expert Comment

ID: 6225046
A grade of a "B"...  why?

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question