&& after menu > program > suspend local oForm as Form; , iDS; , aClasses[1]; , cClass; , cClasses; activate screen iDS = Set("Datasession") for each oForm in _Screen.Forms foxobject set datasession to m.oForm.DataSessionId if Set("Hours") = 12 and AClass(m.aClasses, m.oForm) > 0 cClasses = '' for each cClass in m.aClasses cClasses = m.cClasses + ', ' + m.cClass && or the opposite way endfor ? m.oForm.Name, Substr(m.cClasses, 3) endif endfor set datasession to m.iDS>Just noticed that some of the datasessions have set("hours")=12 even though the app-wide setting should be 24. So it means that some classes and/or forms don't call the code which sets it.