Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting datarow column to be Binary Byte
Message
From
28/01/2014 10:39:36
 
 
To
28/01/2014 10:23:26
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01592485
Message ID:
01592488
Views:
38
>Does this work for you: http://msdn.microsoft.com/en-us/library/system.data.datacolumn.datatype%28v=vs.110%29.aspx

Yes, this is exactly what I needed. I had Binary in my head but this was SQL Server level. In VB.NET code, this is recognized as System.Byte[].
                            ' Binary
                        Case "E"

                            ' Based on the type
                            Select Case oRow(lcField).GetType.ToString

                                ' Byte
                                Case "System.Byte[]"

                                    ' If we cannot convert from byte to hexadecimal
                                    If Not loStringFunction.ByteToHexadecimal(oRow(lcField)) Then
                                        oProcess.ErrorSetup(, loStringFunction.cMessage)
                                        Return False
                                    End If

                                    loStringBuilder.Append("<td>0x" + loStringFunction.cString + "</td>")

                                Case Else
                                    loStringBuilder.Append("<td> </td>")

                            End Select
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform