MCQs > IT & Programming > Delphi > What happens if the TreeView1.Items list is empty when the code TreeView1.Items.AddFirst(TreeView1.Items[0],'X'); is executed?

Delphi MCQs

What happens if the TreeView1.Items list is empty when the code "TreeView1.Items.AddFirst(TreeView1.Items[0],'X');" is executed?

Answer

Correct Answer: An ETreeViewError exception is raised with the message 'Invalid Index'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Delphi Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Delphi Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it