User Tools

Site Tools


k21:k21.3:k21.3.2:start

21.3.2 Manual-Reader - Using Quick-Syntax

The following project provides a way to quickly and easily read and display data from a process. You can use either of the SHELL or EXEC instructions alternatively. The output is immediately displayed in a TextArea:

' Gambas class file
 
Public Sub Form_Open()
    FMain.Center()
    FMain.Resizable = False
End
 
Public Sub TextBox1_Activate()
    Exec ["man", TextBox1.Text] To TextArea1.Text
'-- Shell "man" & " " & TextBox1.Text To TextArea1.Text '-- Alternative to EXEC
    TextArea1.Pos = 1
End

GUI 'man'

Figure 21.3.2.1: GUI for the 'man' programme

I'm sure you can now think of more ways to use quick syntax in your Gambas programs too!

Download

The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k21/k21.3/k21.3.2/start.txt · Last modified: 23.10.2023 by emma

Page Tools