The weekly tech tips have been posted to the 4D, Inc. Web site. Some of the subjects this week include "Database Performance and Flushing Buffers" and "Adding the 'Shaking window to say No' effect."
12:00 AM PST
New 4D Tech Note Posted
This week's Technical Note "How to Save and Restore 4D Hierarchical Lists" is now available to 4D Partners.
12:00 AM PST
Here's a helpful method for incrementing a number in 4D. Rather than hard-coding numbers when adding elements to an array, use the Inc (as in "increment" function below. So instead of this:
ARRAY TEXT(aRay;3) Inc(0) ` Reset the counter to 1. aRay{Inc}:="Regular" aRay{Inc}:="Ethyl" aRay{Inc}:="Fred"
This is especially useful if you need to do a lot of subscripted assignments where you might need to do insertions or change the order.
` Inc ` Returns the next number in a series. ` With no parameters, this returns one more than the last number. ` Passing a number increments by that much. ` Passing zero resets the returned number.
C_LONGINT(vIncrementalValue;$Inc;$1)
If (Count parameters>=1) $Inc:=$1 Else $Inc:=1 End if
If ($Inc#0) vIncrementalValue:=vIncrementalValue+$Inc Else vIncrementalValue:=0 End if
Eclipse Service Management Software is a 4D based solution that handles the operational functions for service based organizations. Developed by TechSolutions, Eclipse handles service call management, labor efforts, parts consumed, knowledge management, billing, marketing, management reporting, and much more.