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

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° 1525  File Directory

le 10/04/2007 @ 01:07
par Andrew

Anonyme



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
  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° 1
--------
le 10/04/2007 @ 23:28
par aldweb

Anonyme

visiteur
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
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 @ 00:13
par Andrew

Anonyme

visiteur
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!
  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 12/04/2007 @ 02:50
par JoeV

Anonyme

visiteur
Hello Andrew,

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

Regards,
JoeV
  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 13/04/2007 @ 00:22
par aldweb

Anonyme

visiteur
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?
Ecrire à aldweb   Poster une réponse  Haut
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 ^