pecloe Posted August 26, 2005 Share Posted August 26, 2005 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 More sharing options...
SupraNatural Posted August 26, 2005 Share Posted August 26, 2005 (edited) Good afternoonAfter 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 itemsIn this case the | is the search point for StringReplace and will add a line break at the end of the msgbox Edited August 26, 2005 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 More sharing options...
pecloe Posted August 26, 2005 Author Share Posted August 26, 2005 The | Seperates items<{POST_SNAPBACK}>Thank you SupraNatural Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now