-
Notifications
You must be signed in to change notification settings - Fork 40
Getting started
Using any code editor of choice create a file called HelloProg.b
on your computer and add the following lines of code:
PROGRAM HelloProg
CRT "Hello there!"
END
Line 1 we have PROGRAM and the name of our program. This should be the name of the file without extension.
In most of cases, we will be writing SUBROUTINE
instead of PROGRAM
. Subroutines run inside T24 while programs run on jshell.
Push your source code to the server using git git
or ftp
(depending on what is available to you. You can also copy
and paste
your source code into a file on the server with the same name.
Make sure the file is created in your local .BP
folder (eg. MATHISI.BP
)
Use BASIC [FOLDER_NAME] HelloProg.b
program to compile your source code:
jsh t24 ~ -->BASIC MATHISI.BP HelloProg.b
HelloProg.b
BASIC_13.c
Source file HelloProg.b compiled successfully
Any T24 program needs to be catalogued before it can run. Use CATALOG [FOLDER_NAME] HelloProg.b
:
jsh t24 ~ -->CATALOG MATHISI.BP HelloProg.b
HelloProg
Object HelloProg cataloged successfully
To run your program, simply type the name of the program HelloProg
from the jsh
prompt:
jsh t24 ~ -->HelloProg
Hello there!
As you can see, our message "Hello there!" was printed on the console.
- Home
- Getting started with InfoBasic(jbc)
- Key Features of InfoBasic
- Control Flow
- Subroutines and Functions
- OFS
- Template Programming
- T24 Integration with other Systems
- T24 Business Training
- T24 Navigation Training
- T24 Administration Training