When the solution matters

Tips...

Registration Documentation Knowledgebase Seminars / Training Technical Support Partner Central

Compiling

Why can't I compile my 4D database?

If you are unable to compile your 4D database, there are a number of things you should check:

What compiler options should I use?

There are several different categories of compiler options. The effects of all of these options are described in the Compiler manual. The following are the most important comments about the best values for these options:

Can I merge with Engine for another platform?

No. While you can compile for either platform on either platform to run that code with runtime, standalone or server, you must compile and merge with 4D Engine for Windows on a Windows computer, and with 4D Engine for Mac OS on a Macintosh.

Should I always declare local variables in a compiled structure?

Yes, always type any variable (local or otherwise) regardless of your choice in the "Initialize Local Variables" option found in the Compiler Project dialog box. 4D Compiler types variables based on inference. In other words, it tries to figure out how you are using the variable. Under some conditions, the compiler may not understand how you want the variable typed.

Be careful not to confuse "Initialize" with "Declare". initialising is the process of assigning a value; declaring is the process of typing. When compiling, you (as the database author) can type the variables, or you can let Compiler attempt to declare variables. However, good programming practice is to declare and initialise all variables explicitly.

Subtotal in Compiled Mode

When I try to subtotal variables on a break report, in interpreted mode, I receive the correct values. In compiled mode, I receive zero as my subtotal. What's wrong?

You should not rely on the Subtotal function alone for reports. In addition, you should use the BREAK LEVEL and ACCUMULATE commands.

What is the Universal 4DX folder?

In version 6.0.x of 4D, if you wanted your database to load and use a plug-in (such as 4D_Pack, 4D Write, etc.), the plug-in was required to be placed inside of a (Mac or Win) 4DX folder that resided inside the same directory as your structure. Version 6.5 of 4D introduced the new concept of a "Universal 4DX" folder. A "Universal 4DX" folder is a (Mac or Win) 4DX folder that resides inside the 4D folder which is inside your platform's active "system folder" (WinNT folder, Windows folder, or on the Mac the System Folder:Preferences folder). Should you do an install from the version 6.5.x Product CD you will, by default, end up with a Universal 4DX folder.

The concept of the "Universal 4DX" folder is as simple as it is convenient. Now you can place all your plug-ins into it and subsequently all of your databases will be able to find and load the plug-in(s) that it requires. In other words, it is no longer necessary to have a 4DX folder FOR each database WITH each database.


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