voidOnStart() { //--- テスト文字列を定義する stringtext="123456789012345"; //--- 文字列内のシンボルの数を取得する intstr_len=StringLen(text); //--- 文字列とその中のシンボルの数をログに表示する PrintFormat("The StringLen() function returned the value of %d chars in string: '%s'", str_len, text); /* 結果 The StringLen() functionreturnedthevalueof15charsin string: '123456789012345' */ }