|
outaleb wrote: could you wrtite me an example to see how it could be?
No. He might be leaving it as an exercise for you...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
ok i will try;
but i know how i get the max value of the hole arrray; my problem is that i want the max of each block of values and their belonging Index in this array in a hashtable for example.
but i ll give my best
thx all
|
|
|
|
|
Try the pseudocode Dave gave you. Let us know how it goes...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
hi guys;
it s a little difficult than you thought;idont wanna get the Max value of all but Max-values between the blocks.
<br />
For zahl = 0 To Intens_Array.GetUpperBound(0)<br />
If Intens_Array(zahl) = 0 Then<br />
Max = 0<br />
Else<br />
If Max < Intens_Array(zahl) Then<br />
Max = Intens_Array(zahl)<br />
End If<br />
End If<br />
Next<br />
thats easy; but what i want is to get the Max value between each block of zero-values;
look i have an array with the values like
00000041932321459000000076384600000323453200000
my question is, how could i get the max VALUES whithin each block and his index in this arry for this example: 9-->index:17
8-->index:28
5-->index:40
i hope iwas clear;
so let me us pls )
thx all
|
|
|
|
|
Good day.
I'm running the following code:
Me.ClientsTableAdapter.Fill(Me.DataDataSet.Clients)
Me.TransactionsTableAdapter.Fill(Me.DataDataSet.Transactions)
Me.ContactDetailsTableAdapter.Fill(Me.DataDataSet.ContactDetails)
The first 2 lines complete perfectly and the 3rd one also completes if there's no data in the ContactDetails table. An error is given once one or more rows exist in the table.
The error given is:
"index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
I've tried filling other tables first as well, but with no success.
|
|
|
|
|
In all cases, does the error only show up on the ContactDetails table?? All the others Fill properly no matter what you do?
|
|
|
|
|
I would expect that the contactdetailstableadapter is firing events that are causing other code to run and cause the problem.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I've a component (vb6 dll) with one method. I've created one virtual
directory in my xp machine and registered the dll in it. I've
generated wsdl file using ms soap kit 3 in the same folder. Now when i
call the service from another vb program in the same machine / some
other machine i got the below error.
WSDLOperation: Instantiating the dispatch object for method
name> failed HRESULT=0x80040154: Class not registered.
When i search on the web, it may the dll registration problem. But i'm
sure i've registered. I can add the dll as a reference in another vb
program. I can create an object in another asp program.
I've checked both are working fine. Now the problem is through web
service is shows the error.
I've tried in so many ways. After registered i've restarted the iis
and restarted the machine .....
But I've not get any solution.
If any idea pls help me.
Thanks.
Rishihar S
WinCrs
|
|
|
|
|
You wrote a COM-based .DLL and registered it on the system. The problem is probably with the web service description. It would appear that the class is registered, but the WSDL is using the wrong name to create an instance of the class.
I haven't used VB6 in over 6 years now, and never with a Web Service, so my experience is very limited.
|
|
|
|
|
I have stored the xml string in a StringBuilder variable sb.I want to write the string in sb to a file XMLsetting.xml.
Please help
thanks in advance
|
|
|
|
|
Ok. You already have the XLM is a StringBuilder, so call it's ToString method to get the String version of it. Then it's a simple matter of normal File I/O to write that string to a file. Try this example[^].
|
|
|
|
|
Hi I am working on a system where I need to read the existing contents of various spreadsheets into tables in a sql database. Eg: a spreadsheet named "Branches" needs the contents of its columns stored into a table named "branches" in the sql database. Can anyone give me a hand with this? Thanks 
|
|
|
|
|
use the link below,it will be very useful.
"http://www.dotnetspider.com/qa/Question50.aspx"
<div class="ForumMod">modified on Thursday, March 20, 2008 5:31 AM</div>
|
|
|
|
|
Thanks 
|
|
|
|
|
Hi All
I Want Know My Program Is Runing. If My Prog Is Runing Do'n Run Again
tanks All
|
|
|
|
|
If (UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0) = True Then<br />
<br />
MessageBox.Show("Application is already running")<br />
End If
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
Google for "VB.NET Single Instance" for other ideas on how to do this that may better fit your needs.
|
|
|
|
|
Hiya,
Well if you are using VB.NET then it is quite simple to only have one instance of your application running by first going to your application properties and then under the application tab, check the checkbox that says: "Make single instance application".
LLoyd
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein
The most annoying thing about Microsoft is its obsession with change.
|
|
|
|
|
Hello,
I am running a VB6 macro from excel and I was wondering if there was a way to stop execution after I begin running the program.
Thanks,
Orlando
|
|
|
|
|
Try
Control + Break on the keyboard
"Crtl" + Break
hope this helps
Anoop
|
|
|
|
|
I have a large number of records in excel i want to load the records
in oracle table using vb.net.I dont know how to do it.If anybody can pls help me.I dont want to do it manually. 
|
|
|
|
|
These are two seperate operations. The first is reading an Excel sheet. The second is writing data to an Oracle database.
See this[^] for a small discussion.
|
|
|
|
|
How do I set the width for a column in a datagrid made from a dataview?
|
|
|
|
|
Which grid control are you using? DataGridView (VS2005 and above) or the DataGrid (VS2002 and 2003)??
|
|
|
|
|
Why do I get the error can't find column 1.
dtStudList = generalQuery(int)
dt.Columns.Add(New DataColumn("Student Name", GetType(String)))
'dt.Columns.Add(New DataColumn("Parent Name", GetType(String)))
'dt.Columns.Add(New DataColumn("Phone", GetType(String)))
'dt.Columns.Add(New DataColumn("Cell", GetType(String)))
'dt.Columns.Add(New DataColumn("Instrument", GetType(String)))
For Each row As DataRow In dtStudList.Rows
dr = dt.NewRow()
dr(0) = row("stud_name")
dr(1) = row("stud_par_name")
dr(2) = row("stud_id")
dr(3) = row("stud_phone")
dr(4) = row("stud_cell")
' get student instruments
intStudList = Convert.ToInt32(row("stud_id"))
tableName = "tbl_lessons"
dtStudInst = generalQuery()
' create counter
Dim intCount As Integer = 1
For Each row2 As DataRow In dtStudInst.Rows
If intCount = 1 Then
strInst = Convert.ToString(row2("less_instrument"))
Else
strInst += ", " & Convert.ToString(row2("less_instrument"))
End If
Next
'dr(5) = strInst
dt.Rows.Add(dr)
intCount += 1
Next
Dim dgView As New DataView(dt)
dgrStudList.DataSource = dgView
|
|
|
|