When the solution matters

Tips...

Registration Documentation Knowledgebase Seminars / Training Technical Support Partner Central

API/Plug-in Center

Tutorials

Editing an existing Project

If you need to go back and edit an existing project click on the Edit button at the Project's listing. This will open the project and allow the developer to change any settings they wish. At this point you can produce only the files you need by choosing the necessary output options before generating the files to disk. For example, the developer can generate only the source code if that is the only thing that has changed. Generating files to disk is explained later.

Command Syntax

For our example we are going to create two different commands. One for the API call PA_Request and one for PA_Confirm.

PA_Request(Request_Message; Request_Value; OK_ButtonText; Cancel_ButtonText)

screenshot

For Dim_Request we are passing in four parameters and returning two. The first parameter is Request_Message. This parameter is the question text. In other words this is the text that the developer displays to ask the user for information. The next parameter is an input and output parameter. Notice the arrow pointing both ways for Request_Value. This parameter allows us to display default text in the Request box and return the user's input. The next two parameters are the names of the OK and Cancel buttons. We also want to return an integer value in Return Value. This parameter will return if either the OK or Cancel buttons are clicked.

PA_Confirm(Confirm_Message)

screenshot

In Dim_Confirm we have one input and one return parameter. The Confirm_Message command is the text of our question to our users. We also want to return a value here to see if the user clicks Cancel or OK. The Return Value here is the same as that of the Request command, an integer.

Back 1 2 3 4 5 6 Next Step



International | Company | Contact 4D | Site Map | Privacy Policy | © 4D UK 1995-2008 | Change font size: [A] [A] [A] | Print this page