Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows NT 4.0 Workstation SP6a French edition terminates VB program

Status
Not open for further replies.

petherin

Programmer
Dec 3, 2002
13
0
0
GB
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,
 
well.....its french.....thats the problem....lol...just kidding....I couldn't resist. :)
 
just a thought, but a little more code will be helpful!!

what happens in the sub where the select statemnet is...

(needle in a haystack springs to mind)

good luck

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
File Formats Galore @
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top