In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Autofilling Default Values

One of the notable features of the dictionary window is the way in which it is possible when adding dictionary items quickly, just to fill in the name, press return and then press F9. The system automatically fills in all fields with default values and continues on to the next item. Identical functionality can be easily provide using the system function DEFAULT (See Vol 1 Issue 8 Page 10). Place the following code on the Pre Save


0001        $insert INCLUDE, WINDOW_COMMON%
0002        declare function default
0003        for X = 1 to WC_W_CNT%
0004         if @RECORD<WC_W%(X)<4>> = "" then
0005          if WC_W%(X)<17> then
0006            @RECORD<WC_W%(X)<4>> = default(WC_W%(X)<17>)
0007          end
0008         end
0009        next

(Volume 3, Issue 4, Page 9)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel