January 20, 2021, 01:13:14 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Miscellaneous
»
[bb] say something or ask something to the user by RemiD [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] say something or ask something to the user by RemiD [ 1+ years ago ] (Read 432 times)
BlitzBot
Jr. Member
Posts: 1
[bb] say something or ask something to the user by RemiD [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:41 AM »
Title :
say something or ask something to the user
Author :
RemiD
Posted :
1+ years ago
Description :
to say something to the user, to ask something to the user
Code :
Code: BlitzBasic
Graphics3D
(
1000
,
625
,
32
,
2
)
setbuffer
(
backbuffer
(
)
)
Say
(
"Hello, welcome to this simple say/ask example program"
)
TAnswer$ = Ask
(
"What is your name ?"
)
Say
(
"Have a nice day, "
+TAnswer+
"."
)
End
(
)
Function
Say
(
Message$,ClearScreen%=
True
)
If
(
ClearScreen =
True
)
ClsColor
(
000,000,000
)
Cls
(
)
Locate
(
0
,
0
)
Color
(
125
,000,
250
)
EndIf
Print
(
Message
)
Print
(
"Press any key to continue"
)
FlushKeys
(
)
WaitKey
(
)
End Function
Function
Ask$
(
Message$,ClearScreen%=
True
)
If
(
ClearScreen =
True
)
ClsColor
(
000,000,000
)
Cls
(
)
Locate
(
0
,
0
)
Color
(
125
,000,
250
)
EndIf
FlushKeys
(
)
TAnswer$ =
Input
$
(
Message
)
;DebugLog("TAnswer = "+TAnswer)
Return
TAnswer
End Function
Comments :
Dabhand(Posted 1+ years ago)
Erm, not to sound cheeky... But, am I missing something here?:/ *Scratches head*Dabz
RemiD(Posted 1+ years ago)
it is for beginners... (there are worse codes than that in the code archives !)
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
Miscellaneous
»
[bb] say something or ask something to the user by RemiD [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal