KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Sizing string variables in compiled versus interpreted mode
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: May 26, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Defining string size with a variable is permissible in the interpreted mode, as in the following example:

$stringSize:=20
C_STRING ($stringSize;MyString)

However compiled mode will accept constants only, and the above example must be rewritten as:

C_STRING(20;MyString)