Hi everyone, this time I have a few questions about forms. Hope I can get them answered, thanks!
Question 1:
If I had 2 listbox's and I wanted it to where if ListBox1 Item1 is clicked, it will make ListBox2 display something. Kind of like
So I want if 'Ranged' is selected, I want ListBox2 to display 'Safe Spotting' etc. Can I get an example code on how this would work? Thanks.
Question 2:
How would I make if something in ListBox1 is selected and a button is pressed like 'Run', then it would do something depending on what is selected in ListBox1? I asked this question before in another thread of mine, but I never truly figured it out. (I thought I did). I did not want to double post, so yeah. Any help, please? I need it specific.
Question 3:
When I try to make a button open a web page (like
www.Google.com for this example), it will spit this error out at me:
What am I doing wrong? Here's my procedure:
Code:
procedure Example(Sender : TObject);
begin
OpenWebPage('www.google.com');
end;
Thanks in advance!