Sign in to follow this  
Followers 0
pecloe

What is this Symbol/key please

3 posts in this topic

Good afternoon

After searching the help file and google I can't seem to find the meaning of the "|" used in the script below (from the help files) What exactly is the underlined line doing ? The script works with or without it.

Thank you

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then

MsgBox(4096,"","No File(s) chosen")

Else

$var = StringReplace($var, "|", @CRLF)

------------------------------------------------

MsgBox(4096,"","You chose " & $var)

EndIf

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Good afternoon

After searching the help file and google I can't seem to find the meaning of the "|" used in the script below (from the help files)  What exactly is the underlined line doing ?  The script works with or without it.

Thank you

$message = "Hold down Ctrl or Shift to choose multiple files."

$var = FileOpenDialog($message, "C:\Windows\", "Images (*.jpg;*.bmp)", 1 + 4 )

If @error Then

MsgBox(4096,"","No File(s) chosen")

Else

$var = StringReplace($var, "|", @CRLF)

              ------------------------------------------------

MsgBox(4096,"","You chose " & $var)

EndIf

<{POST_SNAPBACK}>

The | seperates items

In this case the | is the search point for StringReplace and will add a line break at the end of the msgbox

Edited by SupraNatural

Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it!

Share this post


Link to post
Share on other sites

The | Seperates items

<{POST_SNAPBACK}>

Thank you SupraNatural

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