Quite a specific problem, this. I have a VB program that simulates a piece of software. The user has to perform tasks in a certain way to learn how to use the simulated software. Each control has a unique ID number. When clicked, the ID is passed to a procedure to see if the user clicked on the right thing.
The code below works fine in all versions of Windows from 98 onwards, apart from Windows NT 4.0 Workstation SP6a French edition.
'Case 5 means the 6th task in the training program.
Case 5:
'StepIndex is the current step number in the current task.
Select Case StepIndex
Case 0:
Select Case ControlID
'The ControlID of the clicked control is
'dealt with in the case statement below.
Case 35, 86, 951, 26:
conditionsMet = clkCorrect
Case 13, 23, 27, 38, 69, 78, 81, 84, 89, 100, 105, 108, 150, 151, 185, 198, 200:
conditionsMet = clkIgnore
End Select
Exit Function
The rest of the CASE statement is omitted here but it is complete in the program code. When the user clicks on the right control for the first step of task 5, the program disappears - it just terminates, with no error messages and no freezing of the program. Are there any strange bugs in the French version of Windows NT 4.0 Workstation SP6a that would cause the program to terminate (with no errors being shown, the program just disappears)? Any help on this very weird bug would be much appreciated,
The code below works fine in all versions of Windows from 98 onwards, apart from Windows NT 4.0 Workstation SP6a French edition.
'Case 5 means the 6th task in the training program.
Case 5:
'StepIndex is the current step number in the current task.
Select Case StepIndex
Case 0:
Select Case ControlID
'The ControlID of the clicked control is
'dealt with in the case statement below.
Case 35, 86, 951, 26:
conditionsMet = clkCorrect
Case 13, 23, 27, 38, 69, 78, 81, 84, 89, 100, 105, 108, 150, 151, 185, 198, 200:
conditionsMet = clkIgnore
End Select
Exit Function
The rest of the CASE statement is omitted here but it is complete in the program code. When the user clicks on the right control for the first step of task 5, the program disappears - it just terminates, with no error messages and no freezing of the program. Are there any strange bugs in the French version of Windows NT 4.0 Workstation SP6a that would cause the program to terminate (with no errors being shown, the program just disappears)? Any help on this very weird bug would be much appreciated,