FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour VCard import
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: VCard import
Posted: Tue Oct 22, 2019 02:14 PM
Nages,

where are these methods

METHOD SaveToDBF() VIRTUAL
METHOD ReadFromDBF() VIRTUAL
METHOD SaveAsText() VIRTUAL
METHOD RestoreFromText( cText ) VIRTUAL
METHOD WriteVCard() VIRTUAL




How I can make to go to the next record ?
How I can to save each record into dbf ?
How I can to export from dbf to vcf ?

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: VCard import
Posted: Tue Oct 22, 2019 03:53 PM

The VIRTUAL clause is used so that these methods are defined in the classes that are created inheriting from the principal.

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: VCard import
Posted: Tue Oct 22, 2019 04:35 PM

Of course....
Cris let me see wich Is the principal class because i not see it

Please ready the Nages topic
and you found the tcard class I mean

viewtopic.php?f=3t=26196#p143937

&

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: VCard import
Posted: Tue Oct 22, 2019 04:38 PM
Silvio.Falconi wrote:Nages,

where are these methods

METHOD SaveToDBF() VIRTUAL
METHOD ReadFromDBF() VIRTUAL
METHOD SaveAsText() VIRTUAL
METHOD RestoreFromText( cText ) VIRTUAL
METHOD WriteVCard() VIRTUAL



Silvio, where have you copied that code?
In the class where that code was, it is the main class or "parent" class
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: VCard import
Posted: Tue Oct 22, 2019 07:20 PM

Cris i insert the link on message ,there's no parent or inhereit class
Is wrote Only

Class Tvcard
I not see parent class

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: VCard import
Posted: Tue Oct 22, 2019 07:31 PM

Silvio, I think I have not explained myself well, or you have not understood my message.
When a method is declared VIRTUAL in a class (in this case TVCard), it is because the programmer will carry out a class (TMyVCard, for example) that will inherit from the initial (TVCard), and in that class the methods that are developed will be developed VIRTUAL declared in the initial class (TVCard).

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: VCard import
Posted: Tue Oct 22, 2019 07:41 PM
yes, I had arrived at this.

Then another problem that the tvcard class reads only the first record instead in the file there are so many.

I think it was made just to read only one vcard, in fact it only points to the first interval "BEGIN: VCARD", "END: VCARD"

but how can you make it read the next interval?

Having only one record is not difficult to insert on a dbf but
basically the problem for me is how to read the other records in the vcf file

maybe I will be able to resolve if I can turn the 00001.vcf file into as many vcf as there are records in my phone book.
but how to do this conversion?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion