Jump to content

@CRLF within a string?


Recommended Posts

I'm trying to create a GUI for Xcopy and FileRead wasn't working for my help text.

Sooo... What I'm trying to do is display a MsgBox with the text being $helptext.

While declarying this variable I'm trying to make it equal a string with @CRLF, is this possible?

Link to comment
Share on other sites

Global $helptext = "First line" & @CRLF & "Second line"

Just stick it in there with the append operator "&".

:idea:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

$helptext = "This is my help text." & @CRLF & _
    @TAB & "There are many like it, " & @CRLF & _
    @TAB & "but this one is mine!"
For $n = 1 To 10
    $helptext &= @CRLF & @TAB & @TAB & "Extra line: " & $n
Next
MsgBox(64, "Test", $helptext)

:idea:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Well this didn't work

Local $helptext = "XCOPY [source] [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]" & @CRLF & _
"                           [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]" & @CRLF & _
"                           [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]" & @CRLF & _
"                           [/EXCLUDE:file1[+file2][+file3]...]" & @CRLF & _
MsgBox(0, "Xcopy GUI Help", $helptext)
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...