Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
*!*********************************************************
PROCEDURE dispfloor
*!*********************************************************
WAIT WINDOW 'Display floor...' NOWAIT
FOR i = 0 TO 25
STORE 'row' + CHR(i + 65) TO xrow
@ 0.071 + (i * .95) ,0.200 GET &xrow PICTURE ;
"@*IHNT ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" ;
SIZE .95,2.400,0.000 ;
DEFAULT 0 ;
FONT "Arial", 8 ;
VALID whichisit()
NEXT ( i )
RETURN
*!*********************************************************
*! Function: WHICHISIT
*!*********************************************************
FUNCTION whichisit
*
STORE VARREAD() TO thevar
therow = RIGHT(ALLTRIM(thevar), 1)
thecol = ALLTRIM(STR(&thevar, 2))
RETURN .F.
*!*********************************************************
*!*********************************************************
*! Procedure: DISPMACH
*!*********************************************************
PROCEDURE dispmach
SCAN
STORE l_rowx - l_colx TO varname &&... x/y coord
@ 0.071 + (l_rown * .95) , ;
0.400 + ((l_coln - 1) * 2.4) GET &varname ;
PICTURE "@*HNIT " ;
SIZE .95,2.400,0.000 ;
DEFAULT 0 ;
FONT "Arial", 8 ;
STYLE "B";
VALID findmach() &&... looks up machine when clicked
ENDSCAN
RETURN
*!*********************************************************
*!*******************************************************
*! Function: FINDMACH
*!*******************************************************
FUNCTION findmach
STORE VARREAD() TO m_pos
STORE m.cust_id + ALLTRIM(area) + m_pos TO seekkey
SET ORDER TO rowxcolx
SEEK seekkey
IF &m_pos > 0
*... display info about item clicked here
&m_pos = 0
ENDIF ( &m_pos > 0 )
KEYBOARD("{HOME}")
SHOW GET dowhat
RETURN .T.