Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: RE: CONFIRMED: saving as .xxx file


Message #1 by "Bejoy Mathew (MICO/DAN)" <Bejoy.Mathew@i...> on Fri, 19 Oct 2001 11:16:56 +0200
You'll have to switch to ADO to use persisted recordsets. There is 
absolutely no problem with creating recordsets on the fly.

Alternatives:

1. Save the items in the 2nd ListView to a text file and delimit
    your fields with a character you *know* will not occur in the
    ListView items; a good candidate is vbTab. You can then Open
    the textfile later, read in a line and use Split() to break the
    line up into the component fields. See MSDN for use of the Open
    and Print statements for writing to text files.

2. Save to the registry (ugh!)

Regards,
-Toby
BCS/DA


>Subject: RE: CONFIRMED: saving as .xxx file
>From: "Bejoy Mathew (MICO/DAN)" <Bejoy.Mathew@i...>
>Date: Fri, 19 Oct 2001 11:16:56 +0200
>X-Message-Number: 5
>
>
>the database is Access... and I am using DAO ...
>The code takes out specific record sets from the database and displays in 
>Listview ctrls.
>The user selects a combination by clicking on the displayed list and 
>appending to another list view ctrl using a add(Command) button...
>It's this latter list view ctrl which I want to save for later recall so 
>that the user does not have to go thru the process again
>
>Since what I want to save is not specific to a recordset ; can I use a 
>persisted recordset??
>I am new to the whole thing ; so please do suggest alternate ways which 
>can be adopted...
>
>
>-Message-Number: 4
>X-ListManager-Id: 111173
>Date: Wed, 17 Oct 2001 09:38:50 +0200
>From: Toby Bascom <ThomasOBascom@c...>
>Subject: Re: saving as .xxx file
>
>You need to supply us with more details (database format? multiuser?) but
>at the simplest level, you could do this with an ADODB.RecordSet created
>"on the fly" and then save the recordset to disk ("Persisted Recordset")
>using the Save method of the ADODB.RecordSet object.
>
>
>Regards,
>-Toby
>
>
> >From: "Bejoy Mathew (MICO/DAN)" <Bejoy.Mathew@i...>
> >Date: Tue, 16 Oct 2001 04:44:49 +0200
> >X-Message-Number: 7
> >
> >I have made a database management program in VB...
> >
> >Since it has so many fields to be appended ; It can only be done in 2 or 3
> >settings...
> >
> >Can you tell me a way to save the contents of the editable textboxes and
> >listview controls and create a file ; say .xxx such that when I recall
> >the file through the program ; the contents are all filled in and the
> >person can continue doing additional modifications
> >
> >
> >reg'
> >BEJOY MATHEWS


  Return to Index