| | |
Problems when trying to store things as a string that has quotes.
Thread Solved |
•
•
Join Date: Apr 2007
Posts: 9
Reputation:
Solved Threads: 0
say I need to the below to store as a string variable.
Set autoUpdateClient = CreateObject("Microsoft.Update.AutoUpdate",strComputer)
notice teh quotations ? How can I store all of this as one string with the quotations included ?
I need to store this so I can manipulate it, but those quotes keep throwing me problems.
Set autoUpdateClient = CreateObject("Microsoft.Update.AutoUpdate",strComputer)
notice teh quotations ? How can I store all of this as one string with the quotations included ?
I need to store this so I can manipulate it, but those quotes keep throwing me problems.
Where are you storing it? How you proceed depends on the quotation rules of whatever storage medium you're using. For example, if you were pasting that into a C++ string literal, you would need to escape the quotations for it to work:
C Syntax (Toggle Plain Text)
"Set autoUpdateClient = CreateObject(\"Microsoft.Update.AutoUpdate\",strComputer)"
In case you were wondering, yes, I do hate you.
whenever you wish to print or store code that is recognized as system code (meaning it will not be printed) such as quotes in a printf or cout, or things like that, you must include a "\" before the code... i.e.:
etc...
C Syntax (Toggle Plain Text)
\" \\ \%
-->sometimes i wanna take my toaster in a bath<-- ![]() |
Similar Threads
- Escape Sequences or Accepting Double Quotes in String Constants (Visual Basic 4 / 5 / 6)
- Very basic de/encrypt program (Python)
- nested joins, from mdb. Possible? (Visual Basic 4 / 5 / 6)
- Remove Double Quotes " From A String (Visual Basic 4 / 5 / 6)
- Address Book Application... (here's what I have done so far..) (C++)
- Internet explorer problems (Web Browsers)
Other Threads in the C Forum
- Previous Thread: Counting Alphabet Characters, Words, and String Length!
- Next Thread: I need to read a website. familiar with CA infogetter ??
Views: 1116 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C
api array arrays binary binarysearch c++ char character code codeblocks coke command conversion convert copy cpu curl database decimal directory dude dynamic ebook ebooks engrish error exec factorial fgets file fork function functions getlasterror givemetehcodez grade graphics hardware homework i/o input insert int integer lazy libcurl line linked linkedlist linux list lists locate loop malloc matrix memory motherboard mysql no-effort output path pointer pointers prime problem process program programming read recursion recursive recv recvblocked reverse scanf select single socketprograming socketprogramming special spoonfeeding static string strings strtok structures student system systemcall tftp turbo-c turboc unbuffered unix user variable va_list windows windows-mobile






