LogF |
Top Previous Next |
The following commands have been implemented in EMUEScript exactly as they are implemented in OLIE™:
Syntax - LOGF <>
Description: This command is used to format the length of the information that will be logged in the log file.
Sample 1: The following statement uses the LOGF command to truncate the length of the variable Var_1specified (in this case ":2") separated by the Bar character. Copy Var_1 "abcdefghijklmnopqrstuvwxyz" LOGF Var_1 "|" Var_1:2 "|\n"
Results: abcdefghijklmnopqrstuvwxyz|ab|
Sample 2: The following statement uses the LOGF command to truncate the length of the variable Var_1specified (in this case ":-2") separated by the Bar character. Copy Var_1 "abcdefghijklmnopqrstuvwxyz" LOGF Var_1 "|" Var_1:-2 "|\n"
Results: abcdefghijklmnopqrstuvwxyz|ab|
Sample 3: The following statement uses the LOGF command to truncate the length of the variable Var_1specified (in this case ":30") separated by the Bar character. Copy Var_1 "abcdefghijklmnopqrstuvwxyz" LOGF Var_1 "|" Var_1:30 "|\n"
Results: abcdefghijklmnopqrstuvwxyz| abcdefghijklmnopqrstuvwxyz|
Sample 4: The following statement uses the LOGF command to truncate the length of the variable Var_1specified (in this case ":-30") separated by the Bar character. Copy Var_1 "abcdefghijklmnopqrstuvwxyz" LOGF Var_1 "|" Var_1:-30 "|\n"
Results: abcdefghijklmnopqrstuvwxyz|abcdefghijklmnopqrstuvwxyz |
See Also:
|