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
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...
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 =...
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...
:) 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)...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.