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 #1525

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1525  File Directory

10/04/2007 @ 01:07
by Andrew

Anonymous



Is there a way to generate a dialog box of some sorts so that a user can select a single file (e.g., an appl file)? I want to extend this project to include NVFS support (still working on that one). So far, I've only been able to make a form with buttons on it that change values when they scroll up or down. It's really sloppy though, and I can't ensure that all of the files will be displayed because of the array limits (e.g., if they have tons of appl files on their device).

Thanks for any help.

Andrew
  Post an answer  Top

[]   


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

Anonymous

visitor
Hello Andrew,

Storing all files in one place (either the main memory or an external card) in some array is maybe not the best way to proceed: there is always a risk to exhaust the available memory when the place contains many files.

Also note that for NVFS support, you will need to write some PP applets as iziBasic does not manage natively the VFS APIs.

And you will need a nice recursive routine to browse inside the directories tree

So, what I would suggest, although it will be slowlier this way, is to browse the whole files tree until the file you want to start to record (either by some sorting order, or just by processing order), record then some files (enough to display 2 or 3 screens maybe), and stop the recursive search at this point (unless you do some kind of alphabetical sort, then you need to process all files...).
If the user wants to browse wider, then do a new search starting to record at a later index.
This would be some kind of "block reading", which is something commonly used in various areas in the Palm programming, because of the small memory available (especially in the older devices).

I don't know if my explanations are very clear... sorry!

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° 2
--------
11/04/2007 @ 00:13
by Andrew

Anonymous

visitor
Your explanation did make sense, thanks for the quick reply. I'm trying to duplicate Fraser McCrossan's Single Button Launcher which is near impossible to find anymore, and include it with VFS support. If anybody has already done this, let me know, you'll save me a HUGE headache!

Speaking of which, where are some really good tutorials for learning PP, I need a tutorial that will help me learn it as if I were a 10 year old! Any books??

Thanks!
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
12/04/2007 @ 02:50
by JoeV

Anonymous

visitor
Hello Andrew,

Here's where I started.
http://www.taoyue.com/tutorials/pascal/contents.html

Regards,
JoeV
  Post an answer  Top

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

Anonymous

visitor
Hello,

Single Button Launcher can still be found here: http://www.slunecnice.cz/download.php4?v=6141&u=1
A newer alternative is to found here: http://www.jsankey.com/software/5nl/5nl.htm

Then, such a development requires to be very close to the Palm OS internals, so I am not sure at all that iziBasic is the right tool for this kind of need. I would rather recommend a pure native PP (or OnBoardC) coding.

Cheers,
aldweb

PS: JoeV, do you have a similar wonderful getting started website for the BASIC language?
Write to aldweb   Post an answer  Top
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 ^