Solved

I got a doubt regarding saving the xml file in visualbasic

Posted on 2001-06-22
3
231 Views
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:\...."
0
Comment
Question by:vmandem
  • 2
3 Comments
 
LVL 75

Accepted Solution

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

string1 = obj.xml

Anthony
0
 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6220026
ac is right!
0
 
LVL 8

Expert Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now