samuel_1991
Member
- Joined
- Jan 19, 2009
- Messages
- 13
- Programming Experience
- Beginner
Hi every1, I have tried to find the internet that a Java to VB.net convertor is not available (At least they are paid products which I do not have the $ to do it. I am a student)
Now, I have roughly thought that in Java and need to use it in VB.Net (PDA), how should I do it?
I do have Table_Number as an arrayList that can dynamically saved (add / remove) table number conditon because mine is a restaurant order taking system where customer seats and leaves the table after the meal.
The code I want to convert is about checking if the table number entered by a waiter / waitress is some table that is currently occupied by someone (Therefore it is wrong)
Also another question , sorry, how do I add an arrayList with multiple values in VB.Net?
(Say like customer 1 may order dish 1, 3 qty, dish 5 , 2 qty only while customer 2 may order dish 4, 2 qty only whereas customer 3 may order dish 6 , 1 qty only. All of these are variables that can varies a lot. Supposing there are 10 dishes offered by restaurant.)
Thanks in advance.
Now, I have roughly thought that in Java and need to use it in VB.Net (PDA), how should I do it?
I do have Table_Number as an arrayList that can dynamically saved (add / remove) table number conditon because mine is a restaurant order taking system where customer seats and leaves the table after the meal.
The code I want to convert is about checking if the table number entered by a waiter / waitress is some table that is currently occupied by someone (Therefore it is wrong)
VB.NET:
for (int i = 0; i < Table_Number.size(); i++)
{
if (Table_Number(i) == txttbNo)
{
[COLOR="Lime"]'This is comment. the txttbNo is a variable declared in VB.Net that equates to txtTableNo.text (A textbox with a name txtTableNo)[/COLOR]
System.out.println("Sorry, the seat is occupied by another customer");
}
}
Also another question , sorry, how do I add an arrayList with multiple values in VB.Net?
(Say like customer 1 may order dish 1, 3 qty, dish 5 , 2 qty only while customer 2 may order dish 4, 2 qty only whereas customer 3 may order dish 6 , 1 qty only. All of these are variables that can varies a lot. Supposing there are 10 dishes offered by restaurant.)
Thanks in advance.
Last edited: