I am new to finalbuilder and i need a guideline from here to start with my project.
What I want is to compile the vfp file as well since there is no vfp compiler in FB5 action types. So can I create a custom action type in FB5? I cannot find any topic or article related to my question.
You are right that there is no built-in support for Visual FoxPro in FinalBuilder. However, several of our users are successfully using the FoxPro command line with the Execute Program Action, in order to build vfp projects.
Perhaps one of our FoxPro-savvy users knows more about this approach?
Every Windows process has an exit code (sometimes called an error code) which is returned when the process exists. The Execute Program action can be made to fail if the exit code is outside a certain range.
Unfortunately, I have no idea what the exit codes from a FoxPro .EXE are. You should be able to find this out, though.
To get the kind of flow control you’re talking about, have a look at the Try…Catch action. You can use a structure like this (this example will behave the same as the condition you quoted above):
“Other action 1” will run if the Compile fails, otherwise Other Action 2 will run.
Try
<other action="" 2=""> Catch <other action="" 1=""> End