setRegistry...

Ken Ray kray at sonsothunder.com
Sun Dec 19 23:31:16 EST 2004


On 12/19/04 10:23 PM, "MisterX" <b.xavier at internet.lu> wrote:

>  if you want the quotes you have to include them in the string
> 
> like this:
> 
>  setRegistry( 
>  "HKEY_CLASSES_ROOT\BioArchimed\shell\open\command\",
> quote & "C:\Ba\Ba.exe" & quote && quote & "-E"& quote && quote & "%1"&quote
> )

That's why I like the q() function, it makes it so much easier (I use it so
much, it's in my "standard library"):

setRegistry("HKEY_CLASSES_ROOT\BioArchimed\shell\open\command\",
q("C:\Ba\Ba.exe") && q("-E") && q("%1"))

function q pWhat
  return quote & pWhat & quote
end q


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list