StringTrimLeft / StringTrimRight

¹®ÀÚ¿­ÀÇ ¿ÞÂÊ ¿À¸¥ÂÊÀ¸·ÎºÎÅÍ ¹®ÀÚµéÀ» Á¦°ÅÇÕ´Ï´Ù.

StringTrimLeft, OutputVar, InputVar, Count
StringTrimRight, OutputVar, InputVar, Count
NewStr := SubStr(String, StartPos [, Length]) ; ÀÚ¼¼ÇÑ °ÍÀº SubStr() ÇÔ¼ö ÂüÁ¶.

¸Å°³º¯¼ö

OutputVar
ÁÙ¾îµç InputVar¸¦

ÀúÀåÇÒ º¯¼öÀÇ À̸§ .

InputVar

³»¿ëÀ» ÀÐ¾î µéÀÏ º¯¼öÀÇ À̸§. À̸§À» ÆÛ¼¾Æ® »çÀÎÀ¸·Î µÑ·¯ ½ÎÁö ¸¶½Ê½Ã¿À. ´Ü, º¯¼öÀÇ ³»¿ëÀÌ À̸§À¸·Î »ç¿ëµÇ±â¸¦ ¹Ù¶õ´Ù¸é ¿¹¿ÜÀÔ´Ï´Ù.

Count

Á¦°ÅÇÒ ¹®ÀÚÀÇ °³¼ö. Ç¥Çö½Ä °¡´É. Count°¡ 0º¸´Ù ÀÛÀ¸¸é, OutputVar´Â InputVar Àüü¿Í °°°Ô ¼³Á¤µË´Ï´Ù. Count°¡ InputVarÀÇ ±æÀ̸¦ ÃÊ°úÇϸé, OutputVar´Â ºñ¿öÁý´Ï´Ù.

³íÆò

ÀÌ ¸í·É¾î¿Í ±âŸ ¸ðµç ¸í·É¾î¿¡ ´ëÇÏ¿©, OutputVar´Â InputVar¿Í °°Àº º¯¼ö°¡ µÇ¾îµµ Çã¿ëÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ

SubStr(), StringMid, StringLeft, StringRight, IfInString, StringGetPos, StringLen, StringLower, StringUpper, StringReplace

¿¹Á¦

String = This is a test.
StringTrimLeft, OutputVar, String, 5  ;  ¹®ÀÚ¿­ "is a test."¸¦ OutputVar¿¡ ÀúÀåÇÕ´Ï´Ù.
StringTrimRight, OutputVar, String, 6  ; ¹®ÀÚ¿­ "This is a"¸¦ OutputVar¿¡ ÀúÀåÇÕ´Ï´Ù.