Page 1 of 1 1
Topic Options
#19575 - 2002-04-05 05:53 PM An easy one
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
How do I put two sets of inverted commas in a writevalue line?
eg
WriteValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Excel\Options","OPEN",""C:\Vision5\Vision5.xla"","REG_MULTI_SZ")

As you can see the ""C:\Vision5\Vision5.xla"" is going to stuff me up because Kix is going to assume the next " after the first is the end of the entry. And the OPEN value has to have ""C:\Vision5\Vision5.xla"" as the entry, "C:\Vision5\Vision5.xla" will not work.

Any ideas?

[ 05 April 2002, 17:56: Message edited by: Dean R ]
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
#19576 - 2002-04-05 06:00 PM Re: An easy one
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Use single quotes to encapsulate strings or double a double quote in a string (that one is messy)
code:
' pretty clean
WriteValue('HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Excel\Options','OPEN','"C:\Vision5\Vision5.xla"','REG_MULTI_SZ')
' pretty messy
WriteValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Excel\Options","OPEN","""C:\Vision5\Vision5.xla""","REG_MULTI_SZ")



[ 05 April 2002, 18:01: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#19577 - 2002-04-05 06:03 PM Re: An easy one
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
Cheers Mate
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.142 seconds in which 0.104 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org