Test Your Knowledge!
- Write down the value of each of the following string functions:
- StrLen( "Houses" );
- StrLen( Chr( "Houses", 3 ) );
- StrLen( Substr( "Houses", 2, 4 ) );
- Chr( “James”, 0 );
- Concat( Chr( "Peter", 0 ), "Jones" );
- Trim( Concat( " Peter", "Jones " ) );
- RTrim( Concat( " Peter ", " Jones " ) );
- LTrim( Concat( " Peter", "Jones " ) );
- For each of the following examples, write down the resulting substring:
- Substr( "Envelope", 4, 4 );
- Substr( "Ridden", 0, 3 );
- Substr( "Terrapin", 5, 5 );
- Substr( "Open" & "ing", 1, 3 );
- Substr( 9 ^ 4, 2, 2 );
- Substr( Concat( "User", 1234 ), Mod( 18, 6 ), 8 );
<< Previous: Lesson Summary | Next: How Did You Do? >>