Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

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

  • 2 shared properties
    • shared property Echo as Boolean
    • shared property IsReady as boolean
  • 8 shared methods
    • shared method AttachConsole(ProcessID as Integer = -1) as Integer
    • shared method Flush
    • shared method FreeConsole as Integer
    • shared method GetCharacter as Integer
    • shared method Read(count as Integer) as string
    • shared method ReadDouble(byref value as Double) as Integer
    • shared method ReadInteger(byref value as Integer) as Integer
    • shared method ReadString(byref value as string) as Integer

This class has no sub classes.


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


Statictext   -   StdoutMBS




Links
MBS Xojo Plugins