N
N
nalimite2016-10-21 04:14:19
Delphi
nalimite, 2016-10-21 04:14:19

How to insert a letter into an integer function?

Hey! The question arose about how to enter a variable string into integer, namely a letter.
For example, there is a ComboBox on the form that contains all the letters of the alphabet from A to Z.
There is a function to get the disk number by its letter: GetPhysicalDiskNumber('C')
So, how to take the value from the ComboBox instead of C in this function?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Антон Федорян, 2016-10-21
@AnnTHony

GetPhysicalDiskNumber(ComboBox.Text)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question