Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1854

Re: Replacing text in a text file with VB6

From "StrandElectric" <Strand@dummyspit>
Newsgroups comp.lang.basic.visual.misc
References (3 earlier) <iimdlf$37c$1@news.eternal-september.org> <4d4f2ab0@dnews.tpgi.com.au> <fimuk6dv5t81ums021k1f52tkmets4bdst@4ax.com> <4d50875e$1@dnews.tpgi.com.au> <0p21l6dq4d603jkg056984tb9fgmnd1a5o@4ax.com>
Subject Re: Replacing text in a text file with VB6
Date 2011-02-08 12:31 +1100
Message-ID <4d509d82@dnews.tpgi.com.au> (permalink)

Show all headers | View raw


"ralph" <nt_consulting64@yahoo.net> wrote in message 
news:0p21l6dq4d603jkg056984tb9fgmnd1a5o@4ax.com...
> On Tue, 8 Feb 2011 10:58:09 +1100, "StrandElectric" <Strand@dummyspit>
> wrote:
>
>>
>>"ralph" <nt_consulting64@yahoo.net> wrote in message
>>news:fimuk6dv5t81ums021k1f52tkmets4bdst@4ax.com...
>>> On Mon, 7 Feb 2011 10:10:58 +1100, >
>>>
>>> There isn't any such thing as a "random access file".
>>
>>Strange, nearly all of my books on vb6 (many published by Microsoft) 
>>explain
>>the term 'Random Access File' fully and highlight the differences from a
>>sequential access file. Of course, if you want to be picky I agree that in
>>the end whatever file you have it will write to disc in the same form
>>(manipulation of magnetic fields). At a physical level, therefore, they
>>would be the same. But by 'Random Access' it is implicit that this is a 
>>way
>>of organising the data so that you can go straight to the part of the file
>>(the record) where the required data is held, and that the data is 
>>organised
>>into fields of predetermined length.  Incidentally I do not use 'seek'.  I
>>use UDTs to organise the file and in the put and get statements identify 
>>the
>>required record number.  This has worked in a live accounting system used
>>daily for some years and producing Government required financiaal
>>statements.
>>
>
> I suspect that you are doing far less "random access" than you think
> you are.

***Ralph, I've already agreed that 'random access' ('direct' would be a 
better term) is merely a term for the particular way of organising file 
access and the syntax used (what is physically happening behind the scenes 
on the disk is anything but random (though it appears 'direct' to the 
programmer and user )). But if that way is good enough for the designers of 
vb6 then it's good enough for me!

>
> I'm equally sure your organization and navigation schemes work well as
> the same has also worked well for xBase (dBase, Clipper, FoxPro,
> CodeBase, ...) for twenty-five years.

***well 31 actually :), as it was fully described in interpreter BASIC, then 
GWBASIC, then QuickBasic, then vb6... and it's available in the dreaded 
dot.net too!  (Only there UDTs are replaced by Structures...).  But records 
can be put to and got from directly by reference to the wanted record, and 
of course the records can be searched too for required strings and so on.

On another note, since 'program' is being replaced by the shortened buzzword 
'app', does that make us all mere 'applicators"?

> -ralph
> 

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Replacing text in a text file with VB6 dpb <none@non.net> - 2011-02-06 09:10 -0600
  Re: Replacing text in a text file with VB6 "Henning" <computer_hero@coldmail.com> - 2011-02-08 00:20 +0100
    Re: Replacing text in a text file with VB6 ralph <nt_consulting64@yahoo.net> - 2011-02-07 18:12 -0600
      Re: Replacing text in a text file with VB6 "Henning" <computer_hero@coldmail.com> - 2011-02-08 01:27 +0100
  Re: Replacing text in a text file with VB6 "StrandElectric" <Strand@dummyspit> - 2011-02-07 10:10 +1100
    Re: Replacing text in a text file with VB6 ralph <nt_consulting64@yahoo.net> - 2011-02-07 21:18 -0600
      Re: Replacing text in a text file with VB6 "jason@smkzone.com" <jbodine1@yahoo.com> - 2011-02-08 10:06 -0800
    Re: Replacing text in a text file with VB6 ralph <nt_consulting64@yahoo.net> - 2011-02-06 21:19 -0600
      Re: Replacing text in a text file with VB6 "StrandElectric" <Strand@dummyspit> - 2011-02-08 12:31 +1100
      Re: Replacing text in a text file with VB6 ralph <nt_consulting64@yahoo.net> - 2011-02-07 18:31 -0600
      Re: Replacing text in a text file with VB6 GS <gs@somewhere.net> - 2011-02-06 22:29 -0500
      Re: Replacing text in a text file with VB6 "StrandElectric" <Strand@dummyspit> - 2011-02-08 10:58 +1100
  Re: Replacing text in a text file with VB6 "StrandElectric" <Strand@dummyspit> - 2011-02-10 05:29 +1100
  Re: Replacing text in a text file with VB6 "jason@smkzone.com" <jbodine1@yahoo.com> - 2011-02-07 08:33 -0800
    Re: Replacing text in a text file with VB6 "StrandElectric" <Strand@dummyspit> - 2011-02-08 07:14 +1100
      Re: Replacing text in a text file with VB6 ralph <nt_consulting64@yahoo.net> - 2011-02-07 15:03 -0600
    Re: Replacing text in a text file with VB6 dpb <none@non.net> - 2011-02-07 11:47 -0600
    Re: Replacing text in a text file with VB6 Helmut_Meukel <Helmut_Meukel@bn-hof.invalid> - 2011-02-09 12:09 +0100

csiph-web