Solved

File I/O problem...

Posted on 1998-06-16
2
127 Views
Last Modified: 2010-05-03
I´m a beginner in a VBasic, i prefeer VC++, and i have a problem: i want to write some text like this..

...
Set oConn = Server.CreateObject("ADODB.Connection")
Set oCmd = Server.CreateObject("ADODB.Command")
Set oCmd.ActiveConnection = oConn
oCmd.CommandType = adCmdStoredProc
oCmd.Prepared = TRUE
Set oRS = Server.CreateObject("ADODB.RecordSet")
....
with quotes into a text file and i don´t no how make this, i tested the Print # statment, but it doesn´t work because the quotes...
Anyone can help´s me? thanx in advance

Mário Guedes
0
Comment
Question by:mguedes
2 Comments
 
LVL 7

Accepted Solution

by:
tward earned 10 total points
ID: 1463388
All you have to do is double up on the quotes:

Print #1, "Set oConn = Server.CreateObject(""ADODB.Connection"")"
0
 

Author Comment

by:mguedes
ID: 1463389
1000 thanx tward
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…

808 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