Jump to content
Sign in to follow this  
patlim4152

Escape Switch?

Recommended Posts

patlim4152

Been looking in the help files for the past 10mins, but was wondering if it was possible to output

Msgbox(4096, "Favourite Food", ""Pizza"")

I basically want to print the " instead of it ending the string.

Thanks

Share this post


Link to post
Share on other sites
HardCopy

Put Single Quotes round the Double

Msgbox(4096, "Favourite Food", ' "Pizza" ')

HardCopy

Edited by HardCopy

Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad

Share this post


Link to post
Share on other sites
patlim4152

Thanks. It worked, somewhat. Maybe someone can tell me what is wrong here:

$text = '<AREA SHAPE="poly" COORDS="60" HREF="java script:;" ALT="North" onclick="do(9); return false;">'

$tempstring = 'ALT="North"'

$string_index = StringInStr($text, tempstring,1,0)

Anything I put for $tempstring returns a 0 for string_index. I basically want to get the index of 'ALT="North"'

Thanks in advance.

Edited by patlim4152

Share this post


Link to post
Share on other sites
Jos

Thanks. It worked, somewhat. Maybe someone can tell me what is wrong here:

$text = '<AREA SHAPE="poly" COORDS="60" HREF="java script:;" ALT="North" onclick="do(9); return false;">'

$tempstring = 'ALT="North"'

$string_index = StringInStr($text, tempstring,1,0)

Anything I put for $tempstring returns a 0 for string_index. I basically want to get the index of 'ALT="North"'

Thanks in advance.

$text = '<AREA SHAPE="poly" COORDS="60" HREF="java script:;" ALT="North" onclick="do(9); return false;">'
$tempstring = 'ALT="North"'
$string_index = StringInStr($text, $tempstring,1)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
patlim4152

lol, thanks. careless mistake it seems. =)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×