Jump to content

Recommended Posts

Posted

Hi all :)

I have question, how to use "Random" function to get 1 to 6? just 1,2,3,4,5,6 I dont need 1,XXX 2,XXX only complete numbers.

Second question is about MsgBox

Example

Func QUIT()
    MsgBox(0, "Program name", "Any message")
    Exit
EndFunc

what i must do to get text in two or more lines? i dont like one long line of text

next example:

abcdefghijklmnopqrstuwxyz - wrong

abcdefgh

ijklmnop - Good

qrstuwxyz

Thx for any help

This world is crazy

Posted (edited)

$Title = Random(1,6,1); This last value specifies an integer return instead of a float.
$Msg = "abcdefghij"& @LF &"klmnopqr"& @LF &"stuvwxyz";  You can use the @LF or @CRLF macro.
MsgBox(64,$Title,$Msg)

:)

or did you mean...

$Title = "?"
$Msg = "abcdefghij"& _
"klmnopqr"& _
"stuvwxyz"
MsgBox(64,$Title,$Msg)
Edited by Mobius

wtfpl-badge-1.png

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
  • Recently Browsing   0 members

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