|
This function returns the number of characters in a string expression. |
||||||
Syntax: |
|||||||
{INT_VAR}= strlen({STR_EXPR}) | |||||||
I/O parameters:
|
|||||||
Result value: |
|||||||
|
|||||||
Example: |
|||||||
Declaration of Variables | |||||||
10 DOCU_INT_1=0 20 ask(DOCU_STRING_1,"Enter a word consisting of at least 12 letters!") 30 DOCU_INT_1 = strlen(DOCU_STRING_1) 40 if ( DOCU_INT_1 < 12 ) 50 put("This word contains less than 12 letters!") 60 C -- Recursive call 70 PR_3() 80 else 90 put("Entry OK!") 100 endif |
|||||||
Result: | |||||||
|
|||||||
![]() |
Functions and commands: Editing Strings |