Results 1 to 10 of 10

Thread: [2005] Select CASE [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Resolved [2005] Select CASE [RESOLVED]

    Code:
    If Ctype(control, TextBox).Id.StartsWith("txtTest1") Then
      'do something
    ElseIf Ctype(control, TextBox).Id.StartsWith("txtTest2") Then
     'do something
    ElseIf Ctype(control, TextBox).Id.StartsWith("txtTest3") Then
     'do something
    ElseIf Ctype(control, TextBox).Id.StartsWith("txtTest4") Then
     'do something
     '{more if statements}
    Else If
    Now i want to recode this with using SELECT CASE.
    How do i use select case when i want that each case finds if certain control's id startswith given value?

    Thanks
    Last edited by selanec; Apr 30th, 2008 at 06:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width