//--------------------------------------------------------------------------- // leftstr2 : 文字列の左から指定した文字数だけを取得する。 // (2バイト文字も1文字と数える) // [Usage] : // call leftstr2 $$in_str, ##num; // $$out_str = $$return; // // $$in_str : 文字列 // ##num : 指定文字数 // $$out_str : 取得された文字列 // // 備考: 実行には midstr2 サブルーチンが必要 // leftstr2: call midstr2 $$1, 0, ##2; return $$return; //---------------------------------------------------------------------------