aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1526

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1526  ANY way to use COPY command on non-"data"-files?

10/04/2007 @ 17:19
by doeni

Anonymous



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

In this case, it's "ThQS".

It's really important :(


Write to doeni   Post an answer  Top

[]   

StartPrevious [ 1 2 3 ] NextEnd

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 21
--------
19/04/2007 @ 00:12
by Stewe

Anonymous

visitor

Hey,

So, I think the "type" doesn't really matter. Or shouldn't :) Not sure, though.

This is how I add a new record to a saved game: (input: id, data, len)

UInt16 recnum=0;
MemHandle hrec=DmNewRecord(pDb,&recnum,len);
UInt32 rid=id;
DmSetRecordInfo(pDb,recnum,NULL,&rid);
void *prec=MemHandleLock(hrec);
DmWrite(prec,0,(const void *)data,len);
MemHandleUnlock(hrec);
DmReleaseRecord(pDb,0,true);

Using similar steps, I'm sure this record can be duplicated.
The order of the records doesn't matter.

Stewe
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 22
--------
20/04/2007 @ 15:42
by doeni

Anonymous

visitor
aldweb, could you code that? *hope*
Write to doeni   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 23
--------
20/04/2007 @ 23:28
by aldweb

Anonymous

visitor
Hello,

Thanks to Stewe for sharing this piece of code that confirmed that he is updating the Record Unique ID.
Stewe, for your information, here is what is written in the Palm OS Reference, in the DmSetRecordIndex paragraph:
Comments: Sets information about a record. Normally, the unique ID for a record is automatically created by the data manager when a record is created using DmNewRecord, so an application would not typically change the unique ID.
So, usually, developers will work either with the record index or some information stored in the record to get to know which information they are working on.

Doeni, I have updated the PP applet accordingly (that was easy, only 3 lines of code to add). You may download it again here: izibasic_fileapplet.zip

Cheers,
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 24
--------
21/04/2007 @ 17:27
by doeni

Anonymous

visitor
Thank you so much!

Everything works fine now.

Thanks alot for the great help
Write to doeni   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 25
--------
21/04/2007 @ 17:49
by aldweb

Anonymous

visitor
Good news
Thanks for the feedback.

Cheers,
aldweb
Write to aldweb   Post an answer  Top
StartPrevious [ 1 2 3 ] NextEnd
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^