22-degrees
Well-known member
Hi all,
I need to provide a feature to allow a user to select one of several options form several different categories which can then be used to construct an If Statement to access data stored in arrays etc and return a result.
Basic Example: (using arbitrary headers and data)
Each header represents a combobox, each box has several options.
So if the user selects "if", "Oranges", "<", "2", "Order More", the statement built would be:
In reality, the number of options and parameters are vastly greater than the demonstration above but I wanted to keep it simple. As I don't have the greatest knowledge of VB.net, I was hoping someone could provide a few keywords that I might research to hopefully achieve what I need.
What kind of options do I have, if any?
I need to provide a feature to allow a user to select one of several options form several different categories which can then be used to construct an If Statement to access data stored in arrays etc and return a result.
Basic Example: (using arbitrary headers and data)
Each header represents a combobox, each box has several options.
Argue | Stock | Oper. | Amt | Msg |
IF | Apples | > | 1 | Order More |
AND | Oranges | < | 2 | Lower Price |
OR | Pears | = | 3 | Give them away |
ELSE | Plums | <> | 4 | Dump them |
So if the user selects "if", "Oranges", "<", "2", "Order More", the statement built would be:
VB.NET:
If oranges < 2 then
msgbox("Order More " & comboStock.selecteditem.tostring)
End if
In reality, the number of options and parameters are vastly greater than the demonstration above but I wanted to keep it simple. As I don't have the greatest knowledge of VB.net, I was hoping someone could provide a few keywords that I might research to hopefully achieve what I need.
What kind of options do I have, if any?
Last edited: