Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2017, 01:41 PM
Rei Rei is offline
Junior Member
 
Join Date: Sep 2017
Posts: 1
Default ListBox e Input

I'm starting now with Delphi and so I do not even know basic things.

I build two Listboxes, and for each view that one of them is selected I would like to open a different input, something like this:

HTML Code:
If

<<First option selection ListBox1>>

n:=inputBox('Enter 1', 'n');

a:=2*n

ShowMessage(a)

Else

<<Second option select ListBox1 >>

n:=inputBox('Enter 2', 'n')

b:=3*n

ShowMessage(a);

End.
How can I make it work, which command should I use?
Reply With Quote
  #2  
Old 09-14-2017, 03:05 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,218
Default

I really have no idea what you're after.

An if-construction without validating on anything?
An inputBox function which returns something, and what is 'n'?

Explain what you're after.

I personally don't like the ListBox, I would use a ListView.

As for the matter, what you've written doesn't look like Delphi. Try something and post the Delphi code with the things that go wrong. Perhaps that makes your question more readable
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.