VB 50 Enterprise and Select Case 
Author Message
 VB 50 Enterprise and Select Case

Hi,

        ListItem = "Call Schedule"
        Select Case ListItem
            Case ListItem = "Call Schedule"
                CrystalReport1.ReportFileName = "Patient_Call_Schedule.rpt"
            Case ListItem = "Week Prior Reminder"
                CrystalReport1.ReportFileName = "Patient_Remind_1WK_Before.rpt"
            Case Else

        End Select

Above is a piece of code that I am running using VB50 E'se edition with service
pack 3.  Somehow, VB is skipping the statement after  Case ListItem = "Call
Schedule"
What am I missing or doing wrong? Any known issues on VB50 and the Select Case
statement?

Cheers



Mon, 30 Apr 2001 03:00:00 GMT  
 VB 50 Enterprise and Select Case
Instead of :

Quote:
>        ListItem = "Call Schedule"
>        Select Case ListItem
>            Case ListItem = "Call Schedule"
>                CrystalReport1.ReportFileName = "Patient_Call_Schedule.rpt"
>            Case ListItem = "Week Prior Reminder"
>                CrystalReport1.ReportFileName =

"Patient_Remind_1WK_Before.rpt"

Quote:
>            Case Else

>        End Select

try :

        ListItem = "Call Schedule"

        Select Case ListItem

            Case "Call Schedule"
                CrystalReport1.ReportFileName = "Patient_Call_Schedule.rpt"

            Case "Week Prior Reminder"
                CrystalReport1.ReportFileName =
"Patient_Remind_1WK_Before.rpt"

            Case Else

        End Select



Mon, 30 Apr 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. VB 50 Enterprise and Select Case

2. VB 50 Enterprise and Select Case

3. Drop and Drag Problem and Deployment Problem in VB 50 Enterprise

4. VBScript Select Case vs VB Select Case

5. 50 cent bring em in | 50 cent brings out jim jones | 50 cent broke

6. VBasic 5.0 Enterprise beta2 CD forsale $ 50 obo

7. VBasic 5.0 Enterprise beta2 CD forsale $ 50 obo

8. "select...case", multiples cases not possible ?

9. Select Case and Case 0 To 9

10. VB Doesn't compile 50% of the time

11. Need help on ListBox (VB 50)

 

 
Powered by phpBB® Forum Software