From what i have seen in the msdn C# only contains a Len Property compared to VB.NET that has a boat load, for Len...Now this is fairly new Arena for me,dealing with Len and Char Strings...So here is the VB.NET Code section that i'm currently working on..
VB Code:
Public Function Header(ByVal PacketType As String, ByVal pck As String) As String Dim i As Short Dim x As Short x = 0 i = Len(pck) /* Here is the Len part*/ Do While i > 255 i = i - 256 x = x + 1 Loop Header = Name & Chr(0) & Chr(Ver) & New String(Chr(0), 2) & Chr(x) & Chr(i) & Chr(0) & Chr(CInt("&H" & PacketType)) & New String(Chr(0), 8) & pck Debug.Print(Header) End Function
Now i'm not even sure where to begin with the Len,because theirs hardly any information about it for C#..Only thing i have managed to find is a Len Property using a { get; set; }... Only other part of the Code above i havent moved to C# is the the section below::
VB Code:
Header = Name & Chr(0) & Chr(Ver) & New String(Chr(0), 2) & Chr(x) & Chr(i) & Chr(0) & Chr(CInt("&H" & PacketType)) & New String(Chr(0), 8) & pck
Thxs in Advance for the help on this quiet interesting section![]()





Reply With Quote