Sign in to follow this  
Followers 0
SparkSoft

a " in a string

5 posts in this topic

$var = ""*"

this doesnt work :graduated:

how can i put quotes in a string


[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Share this post


Link to post
Share on other sites



'"*'


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Use a single quote around the variable

$MyVariable = 'This variable has "quotes" dude'

Share this post


Link to post
Share on other sites

Just found that out just after i posted sorry

Thanks Though


[center]First Ever Script/App[/center][center]Simple Battery Meter[/center]

Share this post


Link to post
Share on other sites

Another useful tip is to use the ASCII code. Check the function Chr in the help file.

$var = Chr(34) & "*"

This method allows you to build practically any string you want, without interfering with the AutoIt code.

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