Go Back   Cyber Tech Help Support Forums > Software > Programming

Notices

 
 
Topic Tools
  #1  
Old June 9th, 2004, 08:27 PM
BoD][eZ BoD][eZ is offline
New Member
 
Join Date: Jan 2004
Age: 23
Posts: 29
Escape Characters: Visual Basic

I am writing an html interpreter of sorts and i need to output a quotation mark to file. How can i put a quotation in a string?
Code:
Dim string as String

string = "I want to put "quotes" liek that inside a string"

Last edited by BoD][eZ; June 9th, 2004 at 08:29 PM.


  #2  
Old June 10th, 2004, 01:01 AM
jdc2000 jdc2000 is offline
Senior Member
 
Join Date: Dec 2002
Location: Idaho Falls, Idaho, USA
Posts: 804
Dim string as String

string = "I want to put " & Chr$(34) & "quotes" & Chr$(34) & " like that inside a string"
  #3  
Old June 10th, 2004, 01:03 AM
BoD][eZ BoD][eZ is offline
New Member
 
Join Date: Jan 2004
Age: 23
Posts: 29
Will it output to file correctly? IF so thanks alot man!
  #4  
Old June 10th, 2004, 07:23 PM
jdc2000 jdc2000 is offline
Senior Member
 
Join Date: Dec 2002
Location: Idaho Falls, Idaho, USA
Posts: 804
Yes, it will output to a file correctly. However, you will need to use a Line Input statement or other method to read it back in again correctly.
 

Bookmarks

Topic Tools

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 On
HTML code is Off

Forum Jump




All times are GMT +1. The time now is 05:25 AM.