MsgBox Text + $Var in eine Zeile

  • Hallo zusammen,
    wie bekommt man bei einer MsgBox einen Text + $Var in einer Zeile zur Anzeige?
    Es klappt bei mir nur, wenn ich die Variable in eine neue Zeile schreibe.
    Also so:

    [autoit]

    $vardrive=DriveStatus($drive)
    If ($vardrive = "INVALID") Then
    MsgBox(16,"Error","Invalid Optical Drive"&@CRLF& $drive)
    Exit
    EndIf

    [/autoit]

    Danke!

    Gruß
    Sonyman

  • [autoit]

    $Var = "Variabel"
    MsgBox (0, "", "Test und "&$Var)

    [/autoit]

    So geht alles bei mir. ?(