Combo Box component in Delphi

  Рет қаралды 13,804

Mr Long Education - IT & CAT

Mr Long Education - IT & CAT

Күн бұрын

Пікірлер: 14
@mahmoudhassan6627
@mahmoudhassan6627 Жыл бұрын
Wonderful wonderful wonderful .. What a method you are following to teach !!! .. Incredible .Fantastic I owe you so much Mr. Long - Regards from Tripoli - Libya Your brother : Mahmoud Hassan
@MrLongITandCAT
@MrLongITandCAT Жыл бұрын
I'm so glad the videos have helped!
@tshepisosiphokazimajola3575
@tshepisosiphokazimajola3575 2 жыл бұрын
thank you this is so helpful
@AaronCrompton-h7i
@AaronCrompton-h7i Жыл бұрын
Hello, is there a way to make the user unable to type text and have the default item selected as 0 or would i have to use a different component?
@dani-wi1ot
@dani-wi1ot 5 ай бұрын
Pls I have a text file and I want some values on the text files to be shown on combobox ..any tips?
@MrLongITandCAT
@MrLongITandCAT 5 ай бұрын
Loop through the text file and add the values to the combobox. var myfile: textfile ; sLine : string ; Begin AssignFile( myfile , 'textfile_name.txt' ) ; Reset( myfile ) ; while NOT eof( myfile ) do begin readln( myfile, sLine ) ; combobox1.Items.Add( sLine ) ; end; CloseFile( myfile ) ;
@manjerolinu2121
@manjerolinu2121 2 жыл бұрын
Hello. Thank you very much for the detailed explanation. But there is a problem that once selected the item is not reset and the last one remains selected. To overcome this problem cmbx.itemindexI=-1; cmbx.text:='Please select..'; But that's more lines of code. How to write more concisely?
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
Not sure what you are asking. You can check to see if an item is selected by using an if statement: if cmbx.ItemIndex = -1 then showmessage('Please select') else begin //do code here for selected item
@daveeeeeeeeeeeeeeeeeeeeeeeeeee
@daveeeeeeeeeeeeeeeeeeeeeeeeeee 2 жыл бұрын
How do you insert multiple options
@adolflinkler8244
@adolflinkler8244 2 жыл бұрын
Delphi would explode
@daveeeeeeeeeeeeeeeeeeeeeeeeeee
@daveeeeeeeeeeeeeeeeeeeeeeeeeee 2 жыл бұрын
@@adolflinkler8244 i exploded
@M.M628
@M.M628 2 ай бұрын
Hello , I have a question for my pat. I want to use the data from a combobox on Form1 on another combobox in Form2. Can someone please help me?
@MrLongITandCAT
@MrLongITandCAT 2 ай бұрын
At the top of form2 you must add the file name of form1 (Unit1 or whatever its name is) under uses. Then you should be able to type sValue := Form1.comboxbox1.value If that doesnt work then try then name of the unit file of form 1 sValue := Unit1.comboxbox1.value
@M.M628
@M.M628 2 ай бұрын
@@MrLongITandCAT thank you!
Trace Tables | Test For Loops with Trace Tables
8:21
Mr Long Education - IT & CAT
Рет қаралды 2,1 М.
Text Files in Delphi - Writing to a text file
14:00
Mr Long Education - IT & CAT
Рет қаралды 49 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Memo and Rich Edit components in Delphi
16:57
Mr Long Education - IT & CAT
Рет қаралды 19 М.
Power Apps Combo Box DefaultSelectedItems
14:26
Shane Young
Рет қаралды 131 М.
List Box component in Delphi
24:11
Mr Long Education - IT & CAT
Рет қаралды 12 М.
More Delphi Basics | Part 1 | DIV, MOD and Constants
15:39
Mr Long Education - IT & CAT
Рет қаралды 13 М.
Date and Time Part 1 - Date and Time in Delphi
14:28
Mr Long Education - IT & CAT
Рет қаралды 17 М.
For Loops Part 1 - Introduction
16:22
Mr Long Education - IT & CAT
Рет қаралды 22 М.
How I Would Become a Data Analyst In 2025 (if I had to start over again)
15:40
Avery Smith | Data Analyst
Рет қаралды 45 М.
Timer component in Delphi
10:16
Mr Long Education - IT & CAT
Рет қаралды 2,9 М.
Arson epidemic in Russia / YouTube blocked in Russia
12:45
NEXTA Live
Рет қаралды 369 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН