Jump to content

What is this Symbol/key please


 Share

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...