Forum: VB.NET Nov 10th, 2008 |
| Replies: 0 Views: 650 Hi,
i have bieng trying to write a method which takes a listbox index (1D array) and find the corresponding 2D index. I did this code with some help which get the 1D index of a 2D array. Now i need... |
Forum: VB.NET Nov 10th, 2008 |
| Replies: 6 Views: 3,241 Hi again,
Using the above code how could i get the listbox to obtain the corresponding 2D array index.
Thanks |
Forum: VB.NET Nov 9th, 2008 |
| Replies: 6 Views: 3,241 Thanks you,
i will have a look at you method and see if i could use it in any way. But i do need to display the 2D in a listbox as 1D array of strings. i also need to update the data in the listbox... |
Forum: VB.NET Nov 9th, 2008 |
| Replies: 6 Views: 3,241 Look at this example : http://www.automateexcel.com/2008/10/21/convert-matrix-to-vector/ |
Forum: VB.NET Nov 9th, 2008 |
| Replies: 6 Views: 3,241 Thanks for the reply Timo,
yes i basically want to find the coresponding index for a (row,col) in a 1D representation of 2D.
For e.g i a 3x3 array the element in positon (1,1) is 4 in a 1D array. ... |
Forum: VB.NET Nov 7th, 2008 |
| Replies: 6 Views: 3,241 Hey,
i am trying to convert a 2D array to a 1D array and also the reverse. Not sure if i am doing it right so does anyone know how it can be done. below is the code i have for 2D to 1D but now how... |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 5 Views: 1,001 Thanks again and i will try to explain better.
consider this:
Public Class ArrayTest
Private test() As Boolean
Public Sub createArray()
test = New Boolean(0 To 10) {}
end sub
end class |
Forum: VB.NET Nov 2nd, 2008 |
| Replies: 5 Views: 1,001 Thanks for the feed back,
I think i should be able to create the array however, i need help displaying the elements of the arry from a class into a list box on a form. Basically its getting the... |
Forum: VB.NET Nov 1st, 2008 |
| Replies: 5 Views: 1,001 Hi,
I could do with some help please, worked on this all week and still do not know where to start. i need to wirte a program starting with a one dim array in one vb project then use a two dim array... |
Forum: VB.NET Oct 20th, 2008 |
| Replies: 1 Views: 2,198 Hej,
Hope someone can help me with this. Is there a Widows form method equivalent to console.readline? I am trying to validate and input using tryParse to ensure a doulbe is inputted if not display... |
Forum: VB.NET Oct 19th, 2008 |
| Replies: 1 Views: 2,041 Hey,
Can someone explain to me how this function works in relation to a GUI output.
Public Overrides Function ToString() As String
My program do some calculation and conversions and displays... |
Forum: VB.NET Sep 29th, 2008 |
| Replies: 3 Views: 2,035 Thanks Timo,
I will try and transfer this code to work in a console application. |
Forum: VB.NET Sep 29th, 2008 |
| Replies: 3 Views: 2,035 |
Forum: VB.NET Sep 29th, 2008 |
| Replies: 3 Views: 2,035 Hi,
I am trying to write the syntax using a FOR loop to sum numbers base on user input from a console apps. The user enters the total amount numbers to add 2 for eg then the actual numbers to add 4... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 1 Views: 431 Hey,
i am trying to display weight base on a age input without using a table vb.net. Say a age can be anyware from 1 to 18 yrs and weight at 1 = 11kg with a avg increase of 3kg per year. I thought... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 Hey sometimes it just takes a 2nd pair of eyezzzzzz + just this week load VB2008 so now sure if i have all the ms updates. |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 ok Dnx
Tried it again and it worked, will have to check to understand why it didn't worked before.
Dim Liters As String = Console.ReadLine()
quantity = Convert.ToDouble(Liters)
Thanks very... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 it worked???
Did you convert it to double as well? |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 Ok Dnx,
So did that, but how do i check if its "." or "," i could only deplay the value in the program at run time.
3dees |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 Could the ToString method be use to slove this in anyway? I am not that experience in VB.Net |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 My input is coming from:
Console.Write("How many liters (only whole liters please ") "? ")
I did not declare a string variable to store the input because i need it to be store as a Double for use... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 Thanks Dix,
But i'm not understanding what i should try,
and yes i am trying to do a conversion. Could you expand on your response please thanks. |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 18 Views: 2,816 Hey,
Can anyone help me solve this, i am trying to read the value of Console.Readline into a varible declared as Double using vb 2008. As shown below:
Private Sub ReadQuantity()
' Read... |