给你个参考Private Function sx(ByVal n As Integer) As Boolean
Dim a() As Byte, i As Integer
a = StrConv(Trim(Str(n)), vbFromUnicode)
For i = 0 To UBound(a) - 1
If a(i) >= a(i + 1) Then Exit Function
Next sx = TrueEnd Function感觉还是应该让你知道你错在什么地方。Private Function sx(ByVal n As Integer) As Boolean
这题如确定都是整数,可使用字符串法PUBLIC FUNCTION ISSXS( M AS LONG ) AS BooleanDIM S AS STRINGS=TRIM(STR(M))DIM I AS LONGDIM J AS LONGDIM Y AS BooleanY=TRUEJ=LEN(S)FOR I=1 TO J-1