Solved

File I/O problem...

Posted on 1998-06-16
2
124 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
Comment Utility
All you have to do is double up on the quotes:

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

Author Comment

by:mguedes
Comment Utility
1000 thanx tward
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

763 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

15 Experts available now in Live!

Get 1:1 Help Now