I have a main form where the user enters a citation number and selects the type of citation (cbCitationType) it is: Misdemeanor, Traffic, TRACS. I have three forms that have the layout of the different citation types: fMisdemeanor, fTraffic and fTRACS. Depending on what the user has selected in cbCitationType I would like to open the corresponding form. Can someone give me an example of how I could accomplish this?
Leslie
Have you met Hardy Heron?
Code:
procedure TfMain.bFindImageClick(Sender: TObject);
begin
if cbCitationType.ItemIndex < 0 then
begin
ShowMessage('Please select the citation type!');
Exit;
end;
if eCitationNumber.Text = '' then
begin
ShowMessage('Please enter the citation number!');
Exit;
end;
//so here - take the value from the comboBox, prepend an 'f' and open that form
end;
Leslie
Have you met Hardy Heron?