VCard import

User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Post by cnavarro »

The VIRTUAL clause is used so that these methods are defined in the classes that are created inheriting from the principal.
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Post by Silvio.Falconi »

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

http://forums.fivetechsupport.com/viewt ... 96#p143937
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Post by cnavarro »

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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Post by Silvio.Falconi »

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

Class Tvcard
I not see parent class
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: VCard import

Post by cnavarro »

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).
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: VCard import

Post by Silvio.Falconi »

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?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply