Sign in to follow this  
Followers 0
patlim4152

Escape Switch?

5 posts in this topic

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



#2 ·  Posted (edited)

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

#3 ·  Posted (edited)

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

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)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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  
Followers 0