aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1526

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1526  ANY way to use COPY command on non-"data"-files?

le 10/04/2007 @ 17:19
par doeni

Anonyme



Is there ANY way to copy files, that are not of "data" type?

In this case, it's "ThQS".

It's really important :(


Ecrire à doeni   Poster une réponse  Haut

[]   

DébutPrécédent [ 1 2 3 ] SuivantFin

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 10/04/2007 @ 23:17
par aldweb

Anonyme

visiteur
Hello doeni,

Indeed, the COPY statement is limited to the "data" type, mainly for 2 reasons:
1. to avoid people to delete important applications of system files by mistake
2. and also because copying database files and resources files is not exactly the same thing (although it is fairly easy to detect the type of file and have the code copy each record or resource accordingly)

So, to proceed anyway, you could use a PP applet. Then, you might want to give a look to the Lychee framework source code. As far as I remember it does have 2 routines to copy database & resource files.

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 11/04/2007 @ 19:20
par doeni

Anonyme

visiteur
I searched through the framework, but i did not find anything that looked like a copy command. (I don't know anything about PP applet...)

I now have completed the code as it would work in izibasic. It works perfect with "data" files.

Maybe someone who knows how to use PP applets could take a look at the code?

I now also need a way to KILL "ThQS" files...
Ecrire à doeni   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 11/04/2007 @ 21:49
par Khertan

Anonyme

visiteur
You can look too at the source code of Bird wich include a duplicate database function.
Ecrire à Khertan   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 11/04/2007 @ 22:05
par aldweb

Anonyme

visiteur
Good advice Khertan.
By the way, the same advice to dig into Bird's source code applies for deleting a file

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 12/04/2007 @ 12:42
par doeni

Anonyme

visiteur
i found this:

// data
function DmCloseDatabase(dbP:DmOpenRef):UInt16; inline(SYSTRAP,$A04A);
function DmCreateDatabase(cardNo:UInt16;const name:String;c,t:UInt32;resDB:Boolean):UInt16; inline(SYSTRAP,$A041);
function DmDatabaseInfo(cardNo:UInt16;dbID:LocalID;var name:String;var attributes,version:UInt16;var crDate,modDate,bkpUpDate,modNum:UInt32;var appInfoID,sortInfoID:LocalID;var t,c:UInt32):UInt16; inline(SYSTRAP,$A046);
function DmSetDatabaseInfo(cardNo:UInt16;dbID:LocalID;var name:String;var attributes,version:UInt16;var crDate,modDate,bkpUpDate,modNum:UInt32;var appInfoID,sortInfoID:LocalID;var t,c:UInt32):UInt16; inline(SYSTRAP,$A047);
function DmDeleteDatabase(cardNo:UInt16;dbID:LocalID):UInt16; inline(SYSTRAP,$A042);

Is it that what you mean?
I could not find a copy/duplicate function..

And how do i have to implantate it in my izibasic code?
(I'm totally unexperienced in that PP stuff :( )
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 13/04/2007 @ 00:17
par aldweb

Anonyme

visiteur
Hello doeni,

What you provide is a list of Palm OS APIs that can be called from a PP source code.
The DmDeleteDatabase can be used to kill any application, this is the single API to use in this case.

For the CopyFile one, rather search for the DuplicateDB procedure in the builder.pas file.

Then, please read the chapter about PP applets in the iziBasic user manual to see how to implement it, also download the PP applets sample package, this will help you get started.

If you face too many difficulties, then please let me know and I will develop this PP applet for you.

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 7
--------
le 13/04/2007 @ 10:11
par doeni

Anonyme

visiteur
I'll try.


Many thanks for the answers.
Ecrire à doeni   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 8
--------
le 13/04/2007 @ 13:16
par doeni

Anonyme

visiteur
Huh, where can i donwload the sample package?

Can the APIs work with textvariables defined in Izibasic?

BEGIN
INPUT A$
<here the API that is similar to "KILL A$">
END
Ecrire à doeni   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 9
--------
le 13/04/2007 @ 13:16
par doeni

Anonyme

visiteur
Huh, where can i donwload the sample package?

Can the APIs work with textvariables defined in Izibasic?

BEGIN
INPUT A$
<here the API that is similar to "KILL A$">
END
Ecrire à doeni   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 10
--------
le 13/04/2007 @ 13:18
par doeni

Anonyme

visiteur
Found the package, sorry for the double post
Ecrire à doeni   Poster une réponse  Haut
DébutPrécédent [ 1 2 3 ] SuivantFin
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^