In the line:
lstbx is a listbox.
---
if lstbx1.ItemIndex + 1 > lstbx1.Count and lstbx1.Count > 0 then
---
I get "incompatible types" error.
So now I would either have to use an object property with a constant value of 0, or waste memory by creating variables that hold the needed lstbx1 properties.
Am I missing something or is there a better way?
lstbx is a listbox.
---
if lstbx1.ItemIndex + 1 > lstbx1.Count and lstbx1.Count > 0 then
---
I get "incompatible types" error.
So now I would either have to use an object property with a constant value of 0, or waste memory by creating variables that hold the needed lstbx1 properties.
Am I missing something or is there a better way?