- 
                Notifications
    
You must be signed in to change notification settings  - Fork 48
 
Strings
        Aaron Niyonzima edited this page Mar 20, 2021 
        ·
        3 revisions
      
    There are 3 ways of defining strings:
- Single quote: 
name = 'Joe Doe' - Double quote: 
company = "mathisi.io" - backslashes: 
address = \23, avenue de l'armée\ 
To concatenate strings we use colon (:)
first_name = 'Joe' ; last_name = 'Doe'
full_name = fist_name : ' ': last_name
CRT full_name         ;* Joe Doename = "John Smith"
CRT name[1,4]       ;* John
CRT name[5]         ;* Smith
CRT name[-5, 5]     ;* SmithBelow are some samples of how to manipulate strings using some built-in functions
name = "John Smith"
CRT LEFT(4)             ;* John
CRT RIGHT(5)            ;* Smith
CRT UPCASE(name)        ;* JOHN SMITH
CRT DOWNCASE("Value")   ;* value
CRT LEN(name)           ;* 10
CRT STR('A', 3)         ;* AAA- 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