ª÷ÃB¤j¼g¼Ë¦¡¡]¤@¡^¡G¡@
ª÷ÃB¤j¼g¼Ë¦¡¡]¤G¡^¡G¡@
¥H¤Uµ{¦¡½X¦P®É¾A¥Î³o¨âºØ¼Ë¦¡¡G¡@
- Function ¤j¼gÂà¼Æ¦r(xNumber$)
- Dim N1%, N2%, NN, T, X%, i%
- For i = Len(xNumber) To 1 Step -1
- ¡@¡@T = Mid(xNumber, i, 1)
- ¡@¡@X = InStr("¢Þ¤Q¬B¦Ê¨Õ¤d¥a", T): If X > 1 Then N1 = Int(X / 2): GoTo 101
- ¡@¡@X = InStr("¸U»õ¥ü", T): If X > 0 Then N2 = X * 4: N1 = 0: GoTo 101
- ¡@¡@X = InStr("¢Þ¤@³ü¤G¶L¤T°Ñ¥|¸v¤¥î¤»³°¤C¬m¤K®Ã¤E¨h", T)
- ¡@¡@If X > 1 Then NN = NN + Int(X / 2) * (10 ^ N1) * (10 ^ N2)
- 101: Next
- ¤j¼gÂà¼Æ¦r = NN
- End Function
½Æ»s¥N½X
¤½¦¡¥Îªk¡G=¤j¼gÂà¼Æ¦r(B2)¡@
´ú¸ÕÀɤU¸ü¡G¡@
20151225a01(¤j¼gª÷ÃBÂàªü©Ô§B¼Æ¦r).rar (7.83 KB)
|