VCard import

Re: VCard import

Postby Silvio.Falconi » Tue Oct 22, 2019 2:14 pm

Nages,

where are these methods

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


Image

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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Postby cnavarro » Tue Oct 22, 2019 3: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Postby Silvio.Falconi » Tue Oct 22, 2019 4: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=3&t=26196#p143937
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Postby cnavarro » Tue Oct 22, 2019 4: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Postby Silvio.Falconi » Tue Oct 22, 2019 7: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Postby cnavarro » Tue Oct 22, 2019 7: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Postby Silvio.Falconi » Tue Oct 22, 2019 7: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7052
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests