Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

StdinMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Files MBS Util Plugin 6.0 Yes Yes Yes Yes No
Function: A class to read from stdin.
Example:
dim s as new StdoutMBS
dim r as new StdinMBS
dim v,n as Integer

s.Write "Integer: "
n=r.ReadInteger(v)

print "integer read: "+str(v)
print "integer count: "+str(n)

dim d as Double

s.Write "Double: "
n=r.ReadDouble(d)

print "double read: "+str(d)
print "double count: "+str(n)

dim t as string

s.Write "String: "
n=r.ReadString(t)

print "string read: "+t
print "string count: "+str(n)

do
s.Write "Character (type a and return to end): "
n=r.GetCharacter

print "got character: "+str(n)
loop until n=65 or n=97

Feedback, Comments & Corrections

This class has no sub classes.


The items on this page are in the following plugins: MBS Util Plugin.


Statictext   -   StdoutMBS




Links
MBS Xojo Chart Plugins