Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress Bar
Message
De
22/02/2012 07:49:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/02/2012 19:07:10
Muthu Vel
Sty Company
Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01535997
Message ID:
01536059
Vues:
77
You would basically have to:
  • Create the progress bar before the FOR loop
  • Update the progress bar inside the FOR loop, with an expression that indicates percentage done (for example, recno() / reccount())
  • Destroy the progress bar after the FOR loop

    You should make a generic progress bar, or use a ready-made solution. I believe you can find some in the Universal Thread download section. Perhaps there is one in Visual FoxPro sampels, as well.

    If you make your own, creating it as a class makes it easier to use.

    >I want to use Progress Bar when i create the Record. the code below shows how to create record, on click event of the cmdcreate button.
    >
    > local lnfrom, local lnto, local lncounter
    >
    > lnfrom = thisform.txtfrom.value
    > lnto = thisform.txtto.value
    >
    > for lncounter = lnfrom to lnto
    > append balank
    > replace regno with lncounter
    > next
    >
    >my question is how to use progress bar when i creating the record?
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform