Re: switch case

Tech-Archive recommends: Fix windows errors by optimizing your registry



In article <3D1E17F8-7E40-4BDF-8B6B-EBB0D2F49B10@xxxxxxxxxxxxx>,
fren@xxxxxxxxxxxxxxxxxxxxxxxxx says...
hey,
does anyone know how to use switch case? can you include switch case samples.
cause now i need to use switch case to find the string i wan in the array.
eg:
if i wan find "+659" in array name(j), it mus be able to detect it and
convert the string in the name(j) into "/M"

also if i wan find "+656" in array name(j), it mus be able to detect it and
convert the string in the name(j) into "/H"

thanks alot.

In vb6, it's "select case". Look in the help for the syntax details.

--
/~\ The ASCII
\ / Ribbon Campaign
X Against HTML
/ \ Email!

Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).

.



Relevant Pages

  • switch case
    ... can you include switch case samples. ... cause now i need to use switch case to find the string i wan in the array. ...
    (microsoft.public.vb.6.webdevelopment)
  • Re: Switch Case problem
    ... i passed this array to a function-2 that has a switch statement; ... But every time switch reads the first character. ... switch (some variable that is an array conating string) // problem is here ...
    (microsoft.public.vc.language)
  • Re: Sorting based on string value
    ... last SWITCH;} ... Now that I have my array filled, I want to sort the contents of each ... character that matches one of the characters in the $cost_order string. ...
    (comp.lang.perl.misc)
  • Re: Have some problem with enum and string
    ... I have below a for loop and a switch in the for loop. ... I have also a enum called colBlowStep with some values. ... I have also an array[] called m_columnBlowStep with some strings. ... I know I can use string but I rather want to use enum. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Change Text to Memo
    ... Switch a given table field to Memo ... Function SwitchFieldType(sDb As String, sTableName As String, sFieldName ... Dim sSQL As String ... If Err.Number = 0 Then Exit Function ...
    (microsoft.public.access.modulesdaovba)