Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: TLN1
  • Order by date
  1. TLN1

    Parse CSV file with quotes (sometimes)

    Bigsin, Change this line of your code: TextLine = objReader.ReadLine() to this: TextLine = objReader.ReadLine.Replace(Chr(34), "") This will remove all the " chars before populating TextLine so parsing with the , will work nicely. Regards, Terry
  2. TLN1

    Is there such a thing as object overkill?

    RT, I believe the short answer is yes. But it really depends on the programming task. For example I do quite a bit of programming with Windows CE and when I started out with the heavy object approach, it turned out to be very costly in terms of speed and memory usage. So I dropped back down to...
  3. TLN1

    Convert byte array to a single

    Here is some sample code that may help Option Strict Off Option Explicit On Imports System.IO Imports System.Text Imports System.Buffer Dim bDesc(), bPtid(), bData() As Byte Dim dNo, dEa, dEl As Double Dim sXval As Single ......Open binary file with BinaryReader - call it BR bData =...
  4. TLN1

    Compact Framework/PocketPC - Getting/Setting Time

    Maybe this will help you - example code within. Help others when you can. Peace out, TLN1 Option Strict Off Option Explicit On Imports System.IO Imports System.Diagnostics Imports System.String Imports System.Buffer Imports System.Math Imports System.Windows.Forms Imports...
  5. TLN1

    VB.NET to C Code - Can someone please help?

    :) Do you mean some C code similar to this? #include <string.h> #include <stdlib.h> short int ix, iz; char delms[20], str[200], *token; strcpy(str,"11,12,13,51,501,68"); //String data line strcpy(delms,","); //Use comma delm token= strtok(str,delms)...
  6. TLN1

    VB Reorders my Tab Pages at unknown times !

    Yes, this is a problem that MS has not fixed yet. You will have to watch your tabs carefully and reorder them in the code editor occasionally. What I have found (at least on my machine) is this tab reordering almost never occurs IF you select your tab pages using the properties window pulldown...
  7. TLN1

    VB.NET equiv. to VB6.0 FileGet( )

    D'Arcy, What I am doing (and it works) in PC and WinCE device is to use BinaryReader and BinaryWriter classes for the best performance. This tricky part is getting the structure defined properly - especially the string components. Most likely you are using fixed len strings? Post your VB6...
  8. TLN1

    FileGet on Byte Array

    Hey man - check out the Binary reader it is much faster Regards, Terry '''''THE CODE Option Strict On Option Explicit On Imports System.IO Imports System.String Imports System.Windows.Forms Public Function Read_Binary_Data(ByRef sXfile As String) As Int32 Dim BRead As BinaryReader Dim...
  9. TLN1

    Read/Write Structures to binary file

    I always used Put and Get in previous versions of VB6 to easily write the contents of a structure to a binary file - it was one line of code. The new VB.NET FileGet/FilePut functions are terribly slow when compared to BinaryReader/writer classes so by reading a couple of books I found a way to...
  10. TLN1

    Netcomm

    OK, here is the MSComm version - make sure you have MSCOMM32.OCX and create all the wrapper stuff for VB.NET it should work fine. Regards, Terry ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Dim iCommPort As Short Dim lErr As Integer Dim lNumchars As Integer Dim sComSettings As...
  11. TLN1

    Netcomm

    I am assuming you have above beginner level experience. Well I will attempt to help you - I have not actually used NETComm yet but it has basically the same events etc as the MSComm ocx. I tweaked my VB.NEY code (which uses MSComm) and added NETComm type args (I hope I got it all right). You...

Part and Inventory Search

Back
Top