KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Using an Array of Pointers Instead of the Get Pointer Command
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: April 7, 2000
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

4th Dimension provides a "Get pointer" command that allows you to create a pointer to a variable. This command makes 4D a more flexible programming language. The downside is that Get pointer is slow to execute. It is faster to use predefined pointers to the variables. Often the most efficient way of doing this is to use an array of pointers.

It is even possible to take advantage of both the Get Pointer command and the pointer array. Using Get pointer, it is possible to assign the references to variables to the array. During the execution of the rest of the code, use the array of pointers.