I have the following code:
The 1st part works OK hiding the 4 controls that I need depending the situation. The problem comes when I skip a register and I need to show them again (controls were created with:
Is this the correct way to hide/show controls?
STATIC PROCEDURE Show_controls(oGet, oDbf)
 IF oDbf:show="M"
  oGet[74]:HIDE()
  oGet[75]:HIDE()
  oGet[76]:HIDE()
  oGet[77]:HIDE()
 ELSE
  oGet[74]:DISPLAY()
  oGet[75]:DISPLAY()
  oGet[76]:DISPLAY()
  oGet[77]:DISPLAY()
 ENDIF
RETURNThe 1st part works OK hiding the 4 controls that I need depending the situation. The problem comes when I skip a register and I need to show them again (controls were created with:
REDEFINE SAY oGet[74] ID 900 OF oFld:aDialogs[1]
REDEFINE SAY oGet[75] ID 901 OF oFld:aDialogs[1]
REDEFINE GET oGet[76] VAR oDbf:video1 Â ID 129 OF oFld:aDialogs[1] UPDATE
REDEFINE COMBOBOX oGet[77] VAR oDbf:video_type  ;
   ITEMS {"","Betamax","VHS","Mini 8","Mini DVD","HD DVD","Blu-Ray","DVD Video","MPEG4","AVI","Other"} ;
    ID 130 OF oFld:aDialogs[1] UPDATEIs this the correct way to hide/show controls?