Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scripts run in a session and the execution and the variables are saved until the user logs out. When the script changes, it is sufficient to restart the user session.


Script structure

Scripts consist of forms and commands written in the forms. All forms begin with BeginForm(Form name) and end with EndForm command. Turkish characters are not used in form names.

...

User-defined variables begin with the @ sign. Defining and assigning values are performed with Set command or with commands whose results can be assigned to variables. If a variable is not defined at all, it is automatically defined when first assigning a value.

İş nesnelerine ait değişkenler @@ işaretiyle başlarlar ve adları sabittir. (bkz. Veritabanı nesnelerine ait işlemler) Bu değişkenlere değer atama işlemi, ilgili komutlar tarafından otomatik olarak ya da kullanıcı tarafından özellikle belirtilerek yapılabilir. Bazı komutlar, asıl işlemden etkilenen başka değişkenleri de otomatik olarak doldururlar.

Ürün içinde "kaynak/hedef" şeklinde kullanımı olan nesnelerin "hedef" türünde olanlarının değişkenlerinin adının sonuna 2 sayısı eklenir. Ör. Kaynak depo için @@Warehouse, hedef depo için @@Warehouse2 şeklinde...

Metin ifadeler içinde değişken kullanılabilir. Ör. Text(1,1,"Adı : @adi")

Variables for business objects start begin with the @@ sign and have their names are fixed names. (See. Operations of database objects) Assigning values ​​to these variables can be done performed automatically by the relevant commands or by specifying them specifically by the user. Some commands also automatically populate fill in other variables that are affected by the actual original process.

The number 2 is added to the end of the name of the variables of the "target" type of objects that have can be used as "source/target" usage in the product. For example: @@Warehouse for the source warehouse, @@Warehouse2 for the target warehouse...

The variables can be used in the text. For example: Text(1,1,"Name: @name")

There are several general variables defined for telnet application.

  • @SCREEN_WIDTH : Number of columns on the screen
  • @SCREEN_HEIGHT : Number of lines on the screen
  • @Style : Variable that allows formatting color, line, width, etc.


Spelling

All commands, with or without parameters, are used with parentheses next to them. Ex. Beep(), EndIf(), EndForm()

...

The = (equal) sign is not used in assigning values to variables. Variables are assigned values with the Set command. For example: There is no such use as @a=1. However, the equality check is performed with the = sign. For example: If(@a=1,...)

...