*---------------------- Location Section ------------------------ * Library: Aformspatientdemo.vcx * Class: Cntguarantor * Method: SetguarantorControls() *----------------------- Usage Section -------------------------- *) Description: *) * Scope: Public * Parameters: *$ Usage: *$ * Returns: *--------------------- Maintenance Section ---------------------- * Change Log: * CREATED 07/14/2005 - WGB * MODIFIED *---------------------------------------------------------------- LPARAMETERS tlEnabled WITH THIS * Setting ReadOnly for drop down combos has no effect due to VFP combobox design .SETALL('style',IIF(m.tlEnabled,2,0),'cboViscodes') .SETALL('style',IIF(m.tlEnabled,2,0),'cboStates') .SETALL('style',IIF(m.tlEnabled,2,0),'cboCountry') .SETALL('ReadOnly',!m.tlEnabled) ENDWITHBut now I'm facing another side effect. When I do it the first time, everything is fine. But then I do it again in my button's code, all combos appear without value. When you set focus to them, the value miracously re-appears. The combos have bound property set to true and have array as their record source. If I flip the bound property, the combos appear with values, but now my form thinks, something was changed.