Down To Earth Technical Support

   

 

Software Solutions for today's business

 

   

Down To Earth - code examples

Print page print 

DTE Code examples DTE v7 Code Change examples

The following are notations and examples of the DTE v7 series program code changes required to compile successfully within SynergyDE v9 series and Vista® OS.  This list may not include changes required if you have modified your program with different logic or created new applications.

DTE Program code changes summary and examples:

 Integer amount work area variable is changed from decml to idecml

Begin statements are no longer allowed to include an opcde condition value on the same line.  The opcde must be on its own line in the program.

All program record definitions must "count out" correctly to compile.  For example,

      prov_sid        ,a15    @54    54 = 15 does not calculate as
      prov_sgrs    ,a10    @67    67 and must be changed to at least 69
      prov_swt        ,a9     @80

u_message syntax requirements have changed  

If calling a message, you must also sepcify the type of message -- for example,   

     xcall u_message (opcde)            is no longer valid and must be...
     xcall message (opcde,D_ERROR)

xcall i_init syntax has added another variable option

u_costs must be defined as alphanumeric and not decimal

Adjust to utilize %int within Inventory programs

The sel_rfa variable must be defined as a6, not d6

Single do reads syntax must be separated to haveseparate lines of do begin, reads, end, and until

Input buffers must be defined as alpha, not decimal -- any decimal overlays are no longer needed

The use of the defined variable, f_message is utilized as follows:
 
             'S': begin
                    xcall gettxt (DTER_LOK,f_message)
                    xcall e_sect (f_message,D_INFO)
                    rel_lockd = TRUE
                   end

***** BEFORE
              'S': begin
                    xcall e_sect (dter_lok,D_INFO)
                     rel_lockd = TRUE
                   end

 with the below added as a variable within the program: 
           record
           f_message ,a40   ; Function message

Add %string to msgtextfmt for xcall u_message options in windows.dbl

If you have any questions or need assistance in converting your custom programs, contact our Technical Support department.

Back to top

 

 

   

 

 

 

Technical Support hours:   

  Monday - Friday   
7:00 am - 5:00 pm PST
  

(530) 387-3575   
   


 


Currently Supporting:   

Business Software v7.0 & v3.5   
  Water Management   v7.0   


 


 

Link direct to:   

Down To Earth Home   


Need more help?   

support@datvsn.com   


New Online Format!  
DTE Solutions Newsletter   

 

 

Terms of Use & Privacy Statement

 


 

Bookmark and Share