Compile vfp project? create new action?

Hi,

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.

Thanks for any reply.

Hi Chan,

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?

Regards,

Angus

Hi,

Thanks for suggestion.I already create a exe file which can compile the vfp file and is calling throught "execute program".

The next question would be how to get the return value from the execute program? How if i want to make a condition like:

If (compile got error)

     other action1

Else

    other action2

End If

Another question >"<

Should I select the checkbox"Program exit code must be (condition)"

and where is the variable come from? ( Sorry if this is a stupid question.)

Hi Chan,

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