Re: String builder (Parsing vertically presented records)



Yes

It is missing, if you look in my sample I have showed you than you see.

dim sb as new text.stringbuilder(StrLine.Substring(0,9))

in this case you can set it with the declarations in the style Cerebrus
does.

dim sb as new text.stringbuilder()

Cor

<ILCSP@xxxxxxxxxxx> schreef in bericht
news:1142357552.660778.245780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, when I added the lines to the top of my procedures:

imports system.text
imports system.io

I got a Syntax error for the 2 of them.

Therefore, I had to change the first line to this:
Dim fsr As New System.io.FileStream("c:\surv060313a.txt",
IO.FileMode.Open)

I still get a "name 'sb' is not declared" error for every time the line
shows in the code.



.



Relevant Pages

  • Re: Multi Field SQL Where Clause
    ... The triple quotes cause a syntax error. ... Public sysNtApLkNo as Long ... when using the string as you have defined it the correct values ... Dim sysNtSysCd As String ...
    (microsoft.public.access.forms)
  • Re: Calling a SQL stored procedure
    ... "Syntax error converting datetime from character string." ... How do I pass a datetime value to a datetime parameter. ... > Dim oda As New SqlDataAdapter ... >>I have the following stored procedure in an sql database ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Syntax error
    ... "syntax error in query expression". ... Dim db As DAO.Database ... Dim strSQL As String ... "FROM tSparePartsMainForm INNER JOIN tSparePartsTemplate ON ...
    (microsoft.public.access.forms)
  • Extracting from Variable Extra Help
    ... Syntax error and I can't see the error ... >Dim intLoop As Integer ... >Dim strInitials As String ... >> I am writing letters and all I have is fornames field. ...
    (microsoft.public.access.formscoding)
  • Re: Help with code syntax
    ... I have already tried this before posting and it gave me a syntax error on ... > GlobalSign digital certificate is a forgery and should be deleted without ... >> Public Sub NewRefNo ... >> 'Dim rst As DAO.Recordset ...
    (microsoft.public.access.formscoding)

Loading