Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catch a build error, part 2
Message
De
15/12/2007 20:24:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/12/2007 18:53:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01276105
Message ID:
01276125
Vues:
26
>>Still... I wish there was a way to catch this as an error, no clicking.
>
>Dragan,
>Not quite understood if you want error to occur or suppress it wıth an alternatıve to "external" (which doesn't always work). To suppress (for dbc SPs and FLL functions when I don't have the FLL on hand etc) I add a dummy.prg to project with content like:
>
>
>Procedure MySomething
>Procedure MyOtherThing
>Procedure MyMissing
>
I have a bldapp.prg, which, well, builds the app (i.e. contains the "build app yy from yy.pjx" line), checks for errors (yy.err file exists or not) and then either opens the err file or runs the main app where I can test this.

However, the procedure files which may not be used at all in the build may still need to be available when running - this is a module, so it should use stuff from the daddy app. Having Procedure MyMissing may just return .t. if anywhere in the code I may have x=mymissing(). I actually may need to have MyMissing(p1, p2, p3) return an object.

The solution for this is simple - include but exclude ;) the files from the main project. The one I had trouble with is a function from a MyMain.dbc which didn't exist in mySubApp.dbc - and there was no way I could catch it and ignore it during Build command.

Luckily, I did need this function in mySubApp.dbc, so I copied it from MyMain.dbc. So it is solved for now. I just wonder what sort of problem may be there next time, and whether there may be a way for all the missing files/procedure/function/other names to be logged instead of being dialoggued ;).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform