Sign in to follow this  
Followers 0
Geeky

Change line

3 posts in this topic

I've made a small and simple calculator, for calculating circles.

But then i want it to send the results its ends up in one big number

$radius = inputbox( "Circle's Radius", "Type the circle you want to calculate's RADIUS in cm(Centimetres) here:", "", "", 150, 150)

$diameter = $radius + $radius

$Area = $radius * $radius * 3.14

$Perimeter = $diameter * 3.14

$Calculations = ($diameter & $area & $perimeter) 


MsgBox ( 0, "Calculations", $calculations)

How do i put one result on each line?

MsgBox

Diameter: 3476

Area: 2937

Perimeter: 3872

OK

Share this post


Link to post
Share on other sites



$Calculations = ($diameter & @CR & $area & @CR & $perimeter)

the @CR will do a new line

Share this post


Link to post
Share on other sites

Thx, couldn't find anything about it in the help file B)

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  
Followers 0