No announcements
Found 2806895 threads
-
0 Votes
Can I convert from byte[] to 'Type'?
Thanks for the suggestion but this would require an 'if' statement to check 'dataType' against Int16, Int32, Single, etc. before calling the conversion.Answered | 3 Replies | 3386 Views | Created by C_Smith - Wednesday, May 13, 2009 9:40 AM | Last reply by codevanced - Wednesday, May 13, 2009 11:17 AM -
1 Votes
Type byte has no constructors
The compiler is not reading 'New Byte(stream.Length)' as a declaration of an array with a size, but as a call to the Byte constructor with an argument, hence the message.Answered | 3 Replies | 3717 Views | Created by brmcdani44 - Thursday, January 5, 2012 10:10 PM | Last reply by Cor Ligthert - Friday, January 6, 2012 6:10 AM -
0 Votes
the object can not cast the type BYTE[*] in a BYTE []
Hope the below link helps How to: Load Unmanaged Resources into a Byte Array KarthikeyaAnswered | 3 Replies | 1615 Views | Created by videaste2050 - Tuesday, July 10, 2012 7:47 AM | Last reply by Jason Dot Wang - Tuesday, July 17, 2012 9:03 AM -
1 Votes
Why Int32 literal is implicitely converted to byte type ?
The compiler can check a literal value and make sure its within the range for byte, so the conversion is allowed.Answered | 6 Replies | 3649 Views | Created by bootstrap1 - Sunday, November 21, 2010 1:56 AM | Last reply by Reed Copsey, Jr - Sunday, November 21, 2010 7:39 PM -
2 Votes
Truncating Data types from Int to Byte, transferring 8 LSBs to the Byte
I would mask off the bits I wanted with a bitwise And: Dim test As Integer = 419 Dim x As Byte = CType(test And &HFF, ...Answered | 2 Replies | 4621 Views | Created by M_ali - Monday, May 16, 2011 3:29 PM | Last reply by jo0ls - Monday, May 16, 2011 8:54 PM -
0 Votes
Cast a string repsentation of a byte to a type byte
You could use the byte.Parse method with the System.Globalization.NumberStyles.HexNumber option: string thestring = "0x5a, 0x4c, 0x5d"; string[] strings = ...Answered | 2 Replies | 761 Views | Created by William256 - Sunday, February 22, 2015 3:45 AM | Last reply by Magnus (MM8) - Sunday, February 22, 2015 9:53 AM -
0 Votes
Conversion from type 'DBNull' to type 'String' is not valid.
In addition to Khanna, you could also have sdr(17).ToString() to display the Null value in Database, this will return a " " on the ...Answered | 2 Replies | 4468 Views | Created by RAJUPATEL13 - Thursday, June 23, 2011 5:10 PM | Last reply by Kee Poppy - Monday, June 27, 2011 8:19 AM -
1 Votes
String to byte conversion problems
Convert string to Byte Array, here: http://www.dotnetperls.com/convert-string-byte-array chanmm chanmmAnswered | 1 Replies | 1795 Views | Created by Morten Helland - Friday, December 12, 2014 11:55 PM | Last reply by chanmm - Saturday, December 13, 2014 3:11 AM -
2 Votes
MissingMemberException: Public member 'Take' on type 'Byte()' not found
Similarly, the types of static variables cannot be inferred when Option Strict is on.Answered | 3 Replies | 4661 Views | Created by hazz - Friday, February 19, 2010 10:49 PM | Last reply by hazz - Monday, February 22, 2010 3:16 PM -
22 Votes
Conversion from type 'CalculatedFieldWrapperImpl' to type 'Integer' is not valid
If by chance the data type changed from the time .data was built and now, we may get that error.Answered | 19 Replies | 22217 Views | Created by robboc - Monday, September 26, 2011 3:07 PM | Last reply by Edgar Walther - Wednesday, August 9, 2017 11:33 AM -
3 Votes
Operator '+' is not defined for types '1-dimensional array of Byte' and 'Byte'
Dim byteList As New List(Of Byte) For i = 0 To 10 byteList.Add(CByte(i)) ...Answered | 4 Replies | 6593 Views | Created by hazz - Wednesday, September 22, 2010 1:48 PM | Last reply by hazz - Thursday, September 23, 2010 3:25 AM -
2 Votes
enum of bytes
Yes, the cast is mandatory (that's the explicit conversion the compiler says exists).Answered | 2 Replies | 3609 Views | Created by RobbKirk - Tuesday, January 5, 2010 4:12 PM | Last reply by Ray M_ - Tuesday, January 5, 2010 4:42 PM -
1 Votes
Converting data of datacolumn type Byte[] back to Byte Array
During solving this issue, I found some solutions about Unable to cast object of type 'System.String' to type 'System.Byte[]' in the codeproject.Answered | 3 Replies | 24417 Views | Created by naht - Thursday, March 10, 2011 6:09 AM | Last reply by Jackie-Sun - Wednesday, March 16, 2011 7:19 AM -
0 Votes
Convert Textbox Text to a byte
Here is the ERROR MESSAGE outputted by the compiler: Constant value '300' cannot be converted to a 'byte' (use 'unchecked' syntax to ...Answered | 21 Replies | 3128 Views | Created by Zuher Laith - Saturday, February 18, 2017 4:26 PM | Last reply by Sabah Shariq - Monday, March 20, 2017 9:04 AM -
1 Votes
Cannot implicitly convert type 'int' to 'byte'.
You can't shift a byte.Answered | 2 Replies | 9688 Views | Created by hazz - Thursday, December 3, 2009 6:14 PM | Last reply by boothwine - Thursday, December 3, 2009 7:14 PM -
1 Votes
Conversion from type 'DataRowView' to type 'String' is not valid
Hello, When setting up as you have each row is a DataRowView, the SelectedValue is an Object which must be casted to the proper type to use then if not a string use either ...Answered | 6 Replies | 7050 Views | Created by AliMonMK - Monday, September 7, 2015 11:38 AM | Last reply by Mrwan-Al-Tohami_218 - Sunday, December 22, 2019 11:48 AM -
0 Votes
c# byte and bit conversion
A byte = 8bit, how to convert each 2 digits into a number?Answered | 6 Replies | 3950 Views | Created by lctk - Wednesday, January 23, 2019 9:55 AM | Last reply by ritehere44 - Thursday, January 24, 2019 3:15 AM -
0 Votes
How to get <T> type length of bytes ?
Code: public static byte[] EncodeSignalAndPacket<T>(AppSignal signal, T packet) { byte[] ...Answered | 9 Replies | 1215 Views | Created by lihuipeng49 - Monday, May 13, 2019 7:14 AM | Last reply by lihuipeng49 - Thursday, May 30, 2019 10:31 PM -
1 Votes
Remove byte from an byte array
i understood how to remove last byte from array, nowhelp me in How to remove 1st byte from the array?Answered | 13 Replies | 12418 Views | Created by Avatar 123 - Tuesday, August 7, 2012 8:09 AM | Last reply by Chris-von-der-Wiese - Tuesday, August 7, 2012 2:20 PM -
4 Votes
Get range of bytes from byte[]
Is there a preset function to get a range of bytes from a byte array?Answered | 4 Replies | 61275 Views | Created by Rehabilitated - Wednesday, July 22, 2009 1:26 PM | Last reply by amurskiy - Tuesday, August 14, 2018 10:50 AM - Items 1 to 20 of 2806895 Next ›
No announcements