Oops, didn't read that carefully enough - it's p_caption, not caption.
Graeme
When I reference ctllabel1 in a function that doesn't start with _command, it's ok.
When I reference ctllabel1 in a function that starts with _command, ctllabel1 cannot be found.
(this may be a coincidence, but it's the only difference I can see)
defeventtab TC_MessageBox;
_command void StartPreprocess() name_info(',')
{
int bufferCount;
_control ctllabel1;
bufferCount = TCGetBufferCount();
show('TC_MessageBox');
Msg =bufferCount " buffers are open";
p_active_form.ctllabel1.p_caption = Msg;
}
Control ctllabel1 referenced but does not existWhat am I doing wrong?