|
thanks for reply,
Actullay i have to findout total number of repetition of string inside array.
for each employee name i have to find out repitation of string name inside array .
i have tried like this
Dim icount As Integer = -1
Do
icount = Array.IndexOf(testarray, Label1.Text, icount + 1)
Response.Write(icount.ToString() + "<br>")
Loop Until icount = Array.LastIndexOf(testarray, Label1.Text)
label1.text contains name of employee am i on right track please suggest me ?
how i calculated the total number of repitation of string in array?
give me hint or link .
Regards
Rameez
|
|
|
|
|
|
|
jalandoonkNEWBIE wrote: I have this web application
And yet you didn't ask in the ASP.NET forum.....
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
yeah, sorry. if you can answer my question id appreciate it
|
|
|
|
|
Hi, I'm trying to dynamically build an insert query.
Dim strIns as string = "Insert into XXXX (Field01, Field02) values( '{0}', {1})"
Dim strVals as string = ""Value00","value01""
Dim strWork as string = String.Format(strIns,strVals)
This results in an error
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Could anyone please point me into the right direction?
Thanks
|
|
|
|
|
{0}, {1} means you need to pass two arguments besides strIns
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Thanks Christian,
The arguments are supposed to be in the strVals that is being passed.
From your reply I gather that I need to pass the individual arguments rather than building a string with the values to pass.
regards,
|
|
|
|
|
Correct.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Somebody can tell me( teach me ) how can i program an editable listview?
I want to hve a listview that can be editable in any subitem.
Now i can only edit the item...
the code to edit the item is...
Private Sub ListView1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseDoubleClick
Me.ListView1.LabelEdit() = True
Me.ListView1.SelectedItems(0).BeginEdit()
End Sub
Please i need help...
By the way my english is bad (I speak portuguese ) so forgive me if made a mistake ...
thanks
Just learning
|
|
|
|
|
ROC_Jnr wrote: Me.ListView1.SelectedItems(0).BeginEdit()
Me.ListView1.SelectedItems(0).SubItems(1).BeginEdit()
I think, I NEVER (amlost) allow inline editing in grid or listviews. I make the user double click to open a form to CRUD a record, that way you are only managing 1 record at a time.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
What do you mean by CRUD?
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Nice acronym
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Not mine obviously but I'm happy to use it.
So what do you do all day, oh push CRUD around the screen.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I figured it was an industry standard acronym.
Mycroft Holmes wrote: So what do you do all day, oh push CRUD around the screen.
So true
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have to update some 2002 code. This import does not seem to be valid anymore. Anyone know what happened to this?
Imports System.Runtime.Serialization.Formatters.Soap
TIA
Rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
modified on Monday, August 11, 2008 8:46 AM
|
|
|
|
|
hi Rafone
Be more Specific, what is your Problem.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
I assume he means that this API call is no longer valid or has been moved to a different namespace/class?
Kevin
|
|
|
|
|
Did you include the proper references in your project?
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
You have to add a reference to it in the Project's properties. [Whoops, someone already said that.]
|
|
|
|
|
Thanks to all.
It appears to me that this namespace has been replaced with
System.Runtime.Serialization.Formatters.XML
Rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
Hi all,
I have to develop a project, which will have ListView control along with expand and minimize button features. In other words, I need to attach 5 tables in single form which will show only header when clicked on the header, expanded table to be shown. can anyone help me to achieve this.
I am using arrays as input data to tables
|
|
|
|
|
2 controls and an image button.
1 Textbox/label to hold the table name and info
Listview (I like listviews) with a height of 0
When the use clicks the image button, change the image and expand the height of the listview.
Experiment with a user control (all 3 controls in a panel) stick the UC inside a flowcontrol and it may manage the control actions when you expand/contract the listview. Remember if you use a UC put the management in th code behind the UC.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
ask u guys..i need to differentiate the codes between color of maps in day and night..in vb 2008
|
|
|
|