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
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!