Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add items to TaskList in Code
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00520472
Message ID:
00520758
Vues:
18
>>How do I do the above. I see the foxtask.dbf but is it one record for
>>each task or are all the tasks in a memo field. There is no filespec...
>
>Tools/Task List. Each task is stored in its own record. The field names are pretty much self-explanatory.

Oops, I missed the last part of the subject about doing it with code. Unzip the files in Home()+'tools\xsource'. Open up tasklist.prg and find the tasklist.addTask method. The method assumes that you're passing it a tasklist object, but using the addTask method as a template, you could just as easily populate the record yourself.

There are some gotchas that are commented in the current build (which you don't have). The main one to watch out for is an invalid priority value. This must be totaskobj._Priority < 1 Or totaskobj._Priority > 3, or you will get lots of errors at runtime. This problem has since been fixed in later builds.

If you've got any more questions, ask them today because I'll be offline for about two weeks starting tomorrow.
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform