Hi!
In a basic macro i use a simple Select Case statement:
Option Explicit
Sub Test1
Dim sDate As String
Dim iNum As Integer
Dim iBreak As Integer
On Error GoTo ErrorHandler
sDate = Date()
iNum = DatePart( "w", sDate, 2 )
iBreak = 0
Case Select iNum
Case 1, 6
iBreak = 2
Case 2 To 5
iBreak = 1
End Select
MsgBox iBreak
Exit Sub
ErrorHandler:
MsgBox "error"
End Sub
The macro works fine on my Ubuntu 6.06 with german locale settings.
But on a linux system with english locale settings the macro gives
either a "internal error arg $1" or a "undefined variable in line n",
where the line n is the line "Case 2 To 5".
If i change "Case 2 To 5" to "Case 2, 3, 4, 5" the macro runs without
any error. Strange!?
Can anybody reproduce this problem?
Any ideas?
greetings
Mathias
--
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-·
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]