string-array

How to load string of array in to combobox faster in MFC?

I have an array of 1000 strings how to load them in to combo box faster like kind of dumping in to rather than iterating it? And to copy the combo box data to some 10 other combo box? ...

How to insert and display a new row in the string array?

Hi Friends, i want to display a new row in my listbox on my winform. I have a code like this on my backhand class. string[] a = new string[att]; //String array contains the attributes. if (attCol != null) for (int i = 0; i < att; i++) //Loop through entire attributes { a[i] = " Attrib...

How to Compare Values in Array

If you have a string of "1,2,3,1,5,7" you can put this in an array or hash table or whatever is deemed best. How do you determine that all value are the same? In the above example it would fail but if you had "1,1,1" that would be true. ...

Initializing a string array in a method call as a parameter in C#

If I have a method like this: public void DoSomething(int Count, string[] Lines) { //Do stuff here... } Why can't I call it like this? DoSomething(10, {"One", "Two", "Three"}); What would be the correct (but hopefully not the long way)? ...

Using Property to get array element in C#

Hello everyone. Is there a way to get a specific element (based in index) from a string array using Property. I prefer using public property in place of making the string array public. I am working on C#.NET 2.0 Regards ...

Get a 2 String array from HTML .... using regex?

I'm working on a personal project to auto fill out the USPS Click & Ship form and then output the Ref# and the Delivery Confirmation # So far I've been able to get the whole process done, but I can't for the life of me figure out how to pull out the Ref# (which is my order #) and the Delivery Confirmation # Basically for every package ...

Does C++ support constant arrays of type string?

Hi, I'm a programming student in my first C++ class, and for a recent project I did, I was unable to create an array of strings like I could do in C#: string MONTHS[ARRAY_CAPACITY] = { "Jan", "Feb", "Mar", "April", "May", "June", "July", "Aug", "Sep", "Oct", "Nov", "Dec" }; // this yields many compiler errors in C++ Is it possible to...

New to programming, don't get 2D/3D arrays

Hey everyone, I'm basically new to programming. I've decided to try and get started with C (not C++ or C#) and so far I've been doing pretty well. I managed to get far as two-dimensional arrays before I started to falter. While I think I broadly understand 2D integer arrays, I certainly don't understand 3D string arrays. I'm learning by...

C#: string[] to delimited string. Is there a one-liner?

What I'd prefer is something like: string[] strArray = {"Hi", "how", "are", "you"}; string strNew = strArray.Delimit(chDelimiter); However, there is no such function. I've looked over MSDN and nothing looked to me as a function that would perform the same action. I looked at StringBuilder, and again, nothing stood out to me. Does an...

Indexof with String array in vb.net

How would I find the index of an item in the a string array following code: Dim arrayofitems() as String Dim itemindex as UInteger itemindex = arrayofitems.IndexOf("item test") Dim itemname as String = arrayofitems(itemindex) I'd like to know how I would find the index of an item in a string array. (All of the items are lowercase, so ...

Get length of string array of unknown length

I have this function: int setIncludes(char *includes[]); I don't know how many values includes will take. It may take includes[5], it may take includes[500]. So what function could I use to get the length of includes? ...

How do I derive specific data from a string using the Java standard API?

I have the following pattern: Jan(COMPANY) &^% Feb(ASP) 567 Mar(INC) I want the final output to be: String[] one = {"Jan", "Feb", "Mar"}; String[] two = {"COMPANY","ASP","INC"}; Please help. Anyone!!? ...