- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-11-14 11:06 ½s¿è
¦^´_ 15# downling - Sub Ex() 'StrReverse¨ç¼Æ -> ¶Ç¦^«ü©w¦r¦êªº¦r¤¸¶¶§Ç¬O¤Ï¦Vªº¡C
- Dim A, X
- A = "A_120_78_9"
- X = A Like "*120*" '§ä¨ì¶Ç¦^ True ¤Ï¤§¶Ç¦^ False
- MsgBox X
- X = InStrRev(A, "_") '¥Ñ¥ª¥k¦V¥ª·j´Mªº¦r¦ê¹Bºâ¦¡
- MsgBox X
- A = StrReverse(A)
- X = InStr( A, "_") '¥Ñ¥ª¦V¥k·j´Mªº¦r¦ê¹Bºâ¦¡
- MsgBox X
- End Sub
½Æ»s¥N½X- Sub Ex() ''InStr , InStrRev ¥Îªk¤£¦P
- Dim A, X, C
- A = "A120_78_9"
- 'InStr([start, ]string1, string2[, compare])
- ' start= C string1= A 'string2="_"
- C = 1 '³]©w±q²Ä´XÓ¦r¥À¶}©l´M§ä
- 'X = InStr(A, "_") '¨S«ü©wC ¹w³]¬°1
- X = InStr(C, A, "_") '¥Ñ¥ª¦V¥k·j´Mªº¦r¦ê¹Bºâ¦¡
- MsgBox X
- 'InstrRev(stringcheck, stringmatch[, start[, compare]])
- ' stringcheck= A 'stringmatch="_" Start= C
- C = Len(A) '³]©w±q²Ä´XÓ¦r¥À¶}©l´M§ä
- 'X = InStrRev(A, "_") '¨S«ü©wC ¹w³]¬°¦r¦êªºªø«× Len(A)
- X = InStrRev(A, "_", C) '¥Ñ¥k¦V¥ª·j´Mªº¦r¦ê¹Bºâ¦¡
- MsgBox X
- End Sub
½Æ»s¥N½X |
|