Page 1 of 1

PrintN()

Posted: Sat Oct 15, 2022 4:39 am
by samxxx
;Can you correct this line for me?
;PrintN("My house" str(aNumber)



;-------------------------Number-Age-Name---------------------------

;EnableGraphicalConsole(#True)
;EnableExplicit

Global nNname.s
Define aAge
Define aNumber

OpenConsole()

;-----------------------------------
PrintN (" Enter your house number!")
aNumber = Val(Input())
;PrintN("My house:" Str(aNumber)
;----------------------------------

;----------------------------------
PrintN (" Enter your age!")
aAge = Val(Input())
PrintN( "")
;----------------------------------
;----------------------------------
PrintN (" Enter your name!")
nNname.s = Input()
PrintN(" My Name is: " + nNname)
;----------------------------------






Print(" I am finish! - Press Enter")
Input()

Re: PrintN()

Posted: Sat Oct 15, 2022 4:56 am
by StarBootics
Hello,

The fully working code :

Code: Select all

;-------------------------Number-Age-Name---------------------------

;EnableGraphicalConsole(#True)
;EnableExplicit

Global nNname.s
Define aAge
Define aNumber

OpenConsole()

;-----------------------------------
PrintN (" Enter your house number!")
aNumber = Val(Input())
PrintN("My house:" + Str(aNumber))

;----------------------------------

;----------------------------------
PrintN (" Enter your age!")
aAge = Val(Input())
PrintN( "")
;----------------------------------
;----------------------------------
PrintN (" Enter your name!")
nNname.s = Input()
PrintN(" My Name is: " + nNname)
;----------------------------------

Print(" I am finish! - Press Enter")
Input()
By the way please put your code snippets inside a code display.

Best regards
StarBootics

Re: PrintN()

Posted: Sat Oct 15, 2022 9:39 am
by Caronte3D
A new user, 5 posts with 5 questions answered but no response from the user, not even to thank... seems strange to me. :|

Re: PrintN()

Posted: Sat Oct 15, 2022 11:32 am
by Oso
Caronte3D wrote: Sat Oct 15, 2022 9:39 am A new user, 5 posts with 5 questions answered but no response from the user, not even to thank... seems strange to me. :|
You're right, I agree, it's helpful to receive some feedback - it's what makes the forum work. I had the same feeling about the recent "Sendmail does not work" post. It would have benefited the forum to know the outcome.