Demo 4
Functions
d4_main.4gl File Reference

Functions

function MAIN
 The main menu of the d4 application is implemented in this module. More...
 
function bang ()
 The bang function allows to enter the OS command and then return back to the application. More...
 
function mess (str, mrow)
 The mess function displays str text in the first column of the mrow row and deletes it after 3 seconds. More...
 
function ring_menu ()
 The ring_menu function displays the "Type Control-W for MENU HELP" hint in the 2nd column of the 4th row. More...
 
function unring_menu ()
 The unring_menu function displays "--------------------------------------- -----" in the 2nd column of the 4th row. More...
 
function clear_menu ()
 The clear_menu function clears the first two rows of the screen. More...
 
function get_states ()
 The get_states function fills global array with p_state data (code and name of the state) from the 'state' table. More...
 
function get_stocks ()
 The get_stocks function fills the global array with p_stock data (stock_num, manu_codee,manu_name,description,unit_price,unit_descr) from the 'stock' and 'manufac' table. More...
 
function web_get_cust_info (cust_id)
 The web_get_cust_info function is not used. More...
 

Function Documentation

function d4_main::MAIN ( )

The main menu of the d4 application is implemented in this module.

The main task of this application can be performed using this menu.

Returns
No value

dot_d4_main_F_main.png

function d4_main::bang ( )

The bang function allows to enter the OS command and then return back to the application.

The function is activated after pressing "!" in the application main menu.

Returns
No value

dot_d4_main_F_bang.png

function d4_main::mess (   str,
  mrow 
)

The mess function displays str text in the first column of the mrow row and deletes it after 3 seconds.

Parameters
strCHAR(80) message text
mrowSMALLINT message row position
Returns
No value

dot_d4_main_F_mess.png

function d4_main::ring_menu ( )

The ring_menu function displays the "Type Control-W for MENU HELP" hint in the 2nd column of the 4th row.

Returns
No value

dot_d4_main_F_ring_menu.png

function d4_main::unring_menu ( )

The unring_menu function displays "--------------------------------------- -----" in the 2nd column of the 4th row.

Returns
No value

dot_d4_main_F_unring_menu.png

function d4_main::get_states ( )

The get_states function fills global array with p_state data (code and name of the state) from the 'state' table.

Returns
No value

dot_d4_main_F_get_states.png

function d4_main::web_get_cust_info (   cust_id)

The web_get_cust_info function is not used.

Parameters
cust_idINT customer id
Returns
No value

dot_d4_main_F_web_get_cust_info.png

function d4_main::clear_menu ( )

The clear_menu function clears the first two rows of the screen.

Returns
No value

dot_d4_main_F_clear_menu.png

function d4_main::get_stocks ( )

The get_stocks function fills the global array with p_stock data (stock_num, manu_codee,manu_name,description,unit_price,unit_descr) from the 'stock' and 'manufac' table.

Returns
No value

dot_d4_main_F_get_stocks.png