...
Bloc de code |
---|
/* ___ Declarations _____________________________________________________________________ ALPHA( 10) wLeft ALPHA( 10) wRight ALPHA( 20) wText1 ALPHA( 20) wText2 ALPHA( 20) wText3 /* ___ Code _____________________________________________________________________________ wLeft = 'Hello' wRight = 'World' wText1 = wLeft // wRight /* wText1 = 'Hello World ' wText2 = wLeft /// wRight /* wText2 = 'HelloWorld ' wText3 = wLeft /// ' ' // wRight /* wText3 = 'Hello World ' |
3 - Calculate the length of a string
In order to calculate the length of a string, you simply have to use the &LONGUEUR_CHAINE predefined function :
Bloc de code |
---|
/* ___ Déclarations _____________________________________________________________________
num_bin_2 stringLength
alpha(100) myString
/* ___ Code _____________________________________________________________________________
myString = 'alpha beta'
stringLength = &longueur_chaine(myString)
/* stringLength value is 10 |
2 - How to split a string according to a separator
...