
Ace Master
Avatar/Signature-
Posts
140 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Ace Master
-
I write this code for reading lines one by one and put them into the line object. But I want now to split every line and put them into the 2d array, and don't know how, because the split don't wotk on my variables Dim Read As New System.IO.StreamReader("test.txt") Dim Line(60) As Object Dim x As Integer For x = 0 To 60 Line(x) = Read.ReadLine Next x thanks
-
I used that code for reading a 15 lines text file, but I want to make a split in each line to have a 2D array. Each line contains 4-6 elements separated by "vbtab" it's possible ? thanks
-
I know how to read a text file and put elements to one string. But I want to put the text file into a bidimentional array like this: array(10,3) where 10 is the line numbers from the text file, and 3 are the columns. Each element is separated by "tab" I can't find anywhere any method for doing this. any ideeas ? thanks
-
I don't know how much you will understant from my code, because I send many variables . Public Sub grafic_for(ByVal x, ByVal y, ByVal y1) Dim myDate As Date myDate = date_day.Text For i As Integer = 0 To x ziua = Format(myDate.AddDays(-i), "dd") month = Format(myDate.AddDays(-i), "MM") year = Format(myDate.AddDays(-i), "yyyy") cale_finala = cale + ziua + month + year + ext Dim my As IO.StreamReader check_file(cale_finala) For k As Integer = y To y1 info_total(i, k) = info(k) Next Next
-
I write this code which works perfectly if the second array (generated one) has only one id and value like this: ID VALUE 6 26 Or ID VALUE 14 0.5 Etc� But if I have more Id�s and values is not working at all, and don�t know why. This thing is killing me, and it must be done something like yesterday This is the code I write: Dim w As Integer = 3 For i As Integer = 2 To UBound(info1) - 2 For j As Integer = 3 To UBound(info1) - 1 For k As Integer = 1 To 15 If info1(i) = k Then info(j) = info1(w) Else info(j) = 0 End If j = j + 2 Next Next Next Thanks
-
Can't make it working. this is my code for loading those files to array info() and info1() 'load file with some empty id and values Dim chestie As String = cale_finala Dim my As New System.IO.StreamReader(chestie) Dim Line As Object Dim space As Object = " " Dim enter As Object Line = my.ReadToEnd my.Close() info = Line.split(space) '________________________________________ 'load file with 0 for all the values Dim my1 As New System.IO.StreamReader("../doze/test.doz") Dim Line1 As Object Dim space1 As Object = " " Dim enter1 As Object Line1 = my1.ReadToEnd my1.Close() info1 = Line1.split(space) '_____________________________________ maybe you can see better what I have here now...
-
nobody knows that ? :(
-
hi Dan. I don't now how to populate the array. Actualy I want at least this: I have this array : ID VALUE 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 AND THIS ID VALUE 5 2 6 3 15 4 How to make this array from those 2 ? ID VALUE 1 0 2 0 3 0 4 0 5 2 6 3 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 4 I realy apreciate if someone knows how to make this. thanks
-
a setup project was the solution. Thanks a lot
-
ok thanks, but how I install that control ???
-
I deleted the chart control from the project, and now is working. Of course, my chart is verry important for the project Why this don't work on the other computer ? is this control : Microsoft Chart Control 6.0 (SP4) or maybe you know a replacement control ? thanks ..
-
And what can I do? The vb .net si bought with license, the framework 1.1 is from the original CD. What DLL is missing ? All dll's are inside the bin directory. thanks
-
Hi there, I have this application made in vb.net, which works fine on my computer. I put the final app on other computer with framework 1.1 installed and I receive this error (picture). All the files used in the application are there, so can�t see the reason for this error. Also, don�t know what MSDATASRC is� My application has 4 forms. First one is working but when I try to open the form3 (has a chart) I receive this error. Somebody please can help me with this? Thanks
-
I have 2 arrays with data like this ex: first: ID,NAME 1,ACE 2,BLA 3,ACE2 .... 15,BLA3 second ID,TIME,VALUE 1,04:20,3 2,04:55,6 ........ 15,02:30,5 How to make this array fron those 2? ID,NAME,TIME,VALUE 1,ACE,04:20,3 ..... 15 And another important isue : the first array is allways with all 15 values, but maybe the second one (dinamicaly generated) have some missing id's like this: ID,TIME,VALUE 1,04:20,3 3,04:55,6 ........ 15,02:30,5 and in this case I want this array as result: ID,NAME,TIME,VALUE 1,ACE,04:20,3 2,0,0 ..... 15 any help will be appreciated. thanks
-
Hi. I have the mysql dataadapter which work with a datagrid to dysplay data, but I want the same values into an array. How to make this ? thanks
-
THANKS TO ALL it seams that the timedate picker is the best ideea. For the first tests looks allright to me. best,
-
I have now something like that. To read from textbox as the current time, but I want to make adddays(-i) and this is not posible to a string, only a date variable. Today is 02 dec. If a have a string value or integer and I want to see the file from 4 days a go....I will have -2 value. I need date value for receiving 29 nov. All I want is to convert for ex. 02 to a date value (day) for make days substractions. The same with "11" to month value and year.
-
hi. Thanks for your answer, but I made a function to see if the files is there, and if not, I write a file with my necessary name with 0 values. But...I have another problem.... :( My files are generated by a system (automatically). This system must generate 15 values like: 1 0.5 2 2.8 ....... 15 2.36 it's possible that the system can't generate all the values, and maybe I will have this: 1 0.5 2 3 0.58 .... 15 2.36 If this happens is bad because I receive a failure message like: Cast from string "" to type 'Decimal' is not valid. ..because I use some conversion tools. It is possible to fill my array with empty values? .. Thanks
-
Hi. I have this function for loading several files starting from current day. Public Sub grafic_for(ByVal x, ByVal y, ByVal y1) 'cur_day.Text = ziua 'cur_month.Text = month 'cur_year.Text = year For i As Integer = 0 To x ziua = Format(DatTim1.AddDays(-i), "dd") month = Format(DatTim1.AddDays(-i), "MM") year = Format(DatTim1.AddDays(-i), "yyyy") cale_finala = cale + ziua + month + year + ext Dim my As IO.StreamReader check_file(cale_finala) my = IO.File.OpenText(cale_finala) Dim Line As Object Dim space1 As Object = " " Dim enter1 As Object Line = my.ReadToEnd my.Close() info = Line.split(space1) For k As Integer = y To y1 info_total(i, k) = info(k) Next Next End Sub The problem is that I put some textbox�s to input the data for loading those files. Ex: if today is 02.12.2003 and I want the last 3 days, my function will load 02122003.txt, 01122003.txt and 30122003.txt. But I want to input the starting day from textbox�s. Ex: Even if current day is 02.12.2003 and I put in that textbox�s 05 11 2002 I want to load 05112002.txt, 04112002.txt and 03112002.txt. Don�t know what to do here, because I get all kind of errors when I�m trying different things. All I want is to change the current time with the textbox's values. thanks
-
I have a loop for loading file(s) into one array. Everything works fine if my files are in correct location. This problem appears when one or more files are not there and my application has a fatal error. I made a function for check if my files are there and if not the application is closed without that big error (msgbox) It is possible to read my files and the files that don't exist to be with empty values like �0�? This because all the values are used for a chart and even I don't have one day values I want to see the rest of files on my chart. Thanks
-
...I put a treeview.... This is the reason? I thought that all the controls are for VB .net 2003�...so why I can't include them in my projects? Anyway I will try tomorrow to see if is working without the treeview. Thanks
-
yes Of course. On all the computers with framework 1.1 installed the applications made in vb .net standard are working, but those made in vs .net 2003 (VB) don't work. :(
-
not realy. I have this chart control, and with some code I populate the chart and change is values , columns, etc... btw. I have mysql connection and one data adapter. I want with this data to populate an multidimensional array. little help here? ..thanks .. just the ideea. I know in php but don't know the vb sintax.
-
uff... I just found my problem. The chart proprieties have one option named autoscale. It wasn�t selected :(
-
I don't have any code for generate the scaling chart. Is 0-100 by default. I want 0-10 or 0-5 or 0-20 ....etc... picture attached. I tried chart.maxvalue = 10 , and is not working. thanks