... all I'm offering is the truth. Nothing more. RSS 2.0
 Wednesday, January 07, 2009

I have been doing some with XSL transformations, and VBScript has been my enemy recently. What little grey matter still knows Visual Basic 6 is hit and miss for VBScript. In my case I was trying to create a case statement which in VB can be formatted as follows:

Select Case Numb
    Case 32 to 50    'This is legal in VB 6
    Case 65,66,67,67
    Case Else
End Select

Unfortunately you have to do something like this in VBScript…

Select Case Numb
    Case 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50
    Case 65,66,67,67
    Case Else
End Select

… not very elegant but I am not sure if I have any options.

Technorati tags:
Wednesday, January 07, 2009 11:14:56 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] - Trackback
Visual Basic
Archive
<July 2009>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Statistics
Total Posts: 294
This Year: 34
This Month: 0
This Week: 0
Comments: 21
All Content © 2009, Mark Downie
DasBlog theme 'Business' created by Christoph De Baene (delarou)