Jump to content

Recommended Posts

Posted

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

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

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
  • Developers
Posted

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...