Re: Problem with Get



Wow! It's amazing what an impartial observer with a fresh pair of eyes
can come up with! I've been fussing with this problem for three days
and never noticed I had used the wrong variable in the Get statement.
Of course it now works perfectly! Thank you very much.

Thanks, too, for the added suggestions. I started out using FreeFile
and for some reason switched to hard coded file numbers - I think I'll
switch back. It's elsewhere in the code, but when the app starts I do
check for the existence of the data file and to calculate the number of
records it contains. I can see the wisdom of perhaps checking the data
file before each read and write in case the user deleted or moved the
file while the app was running.

Is there some advantage to specifying the type of random access in the
Open statement instead of just For Random As?

Also one last question - in my initial post I asked if it causes
problems using VB reserved words as variable names in UDTs, such as
CurInv.Date rather than CurInv.MyDate, so can that cause problems?

Thanks again for all your help!
Tony

.



Relevant Pages

  • Data collection storage options
    ... the data on the pda. ... My old app stored data using random access text ... The specific ppc devices are yet to be known, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Closing opened file handles
    ... I have a .NET CF app that calls some functions in a third party DLL ... One of the function calls opens a data file and ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Simple, free RDBMS for VB3/6 with minimal installation footprint
    ... other than the ones needed to run a VB6 app anyway). ... if random access files would be viable. ... a whole slew of additonal support files! ...
    (microsoft.public.vb.general.discussion)
  • Re: Problem with Get
    ... Is there some advantage to specifying the type of random access in the ... Open statement instead of just For Random As? ... problems using VB reserved words as variable names in UDTs, ... Plus the more description you give to the UDT member, ...
    (microsoft.public.vb.general.discussion)
  • Re: older delphi
    ... >The data file is a flat text file. ... >app to tray and restore it, or when I exit the app using the close box ... >in the upper right with a confirm exit dialog. ... The tray icon also disappears ...
    (alt.comp.lang.borland-delphi)

Quantcast