So I managed to get it to print in the terminal (for testing) the way I want it to:
I would like it to be like this:
and ignore '-'?
Output:14/2 BX
12/2 Romex (White)
14/3 BX
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #(These are the blank/default placeholder values)
None #(This is the SQL Results from the last ComboBox)
None #(This is the SQL Results from the last ComboBox)
But I don't know how to grab the Categories, and Length, & Price from those items printed in the terminal (14/2, 12/2, & 14/3).I would like it to be like this:
Output:14/2 BX
('Wire', 100, 0.15) #->(Category,Length,Price) for 14/2 BX
12/2 Romex (White)
('Wire', 25, 0.15)
14/3 BX
('Wire', 200, 0.15)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
So is there a way to iterate through that and just grab/store the Category, Length, Price for each item Name (14/2 BX, 12/2 Romex (White), 14/3 BX) and ignore '-'?