Jump to content
Sign in to follow this  
Sobiech

Two strange questions

Recommended Posts

Sobiech

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

Share this post


Link to post
Share on other sites
Mobius

$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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.