I have 12 checkboxes jan, feb, ..... dec i want to display the checked checkboxes into a file i know how to write in the file but the format of displaying checkboxes is as follows if i checked jan, feb,march and april then output is jan,feb,march,april here my problem is how to collect checked value in array , and how to put comma betweem them.
When declaring a byte array, what is the difference between the following? Is there one, or are these just two different ways of going about the same thing?
I'm working on a reporting section of code for an inventory app I'm making for my office.I call a text file, read every line into an array then populate information pages with what has been pulled from the text file.For reporting, I want to read every text file in the directory, reading each one into a multidimensional array.Thus I can call and report on each item, i.e.ItemArray(i,2) would be all systems with Windows 2008 EE..I have code that lists all files in the desired directory and counts each file, so I eventually get counts of how deep I need the first level of the jagged array to be. but not until after code execution. Basically how can I write each array of data to the jagged array.[code]But I get a null reference exception. "Use the new keyword to create an object instance".
I am working on a UDP Client/Server, and currently i have them sending back and forth strings, which i convert to bytes, and then open the bytes to read. I want to now send an Object instead of those strings, which includes multiple unsigned integers and strings.
I need to sort an array. I need the most repeated strings at the start and the least repeated at the end. Any easy way to do this? My brain is currently fried
Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?
I am creating a Simple Publisher Application in which I need to insert texts in different textbox from an array of strings .I have coded it like this .
Dim texts(40) As String 'Array of strings to be inserted shpTextBox = appPub.ActiveDocument.Pages(pageIndex).Shapes.AddTextbox _ (Orientation:=PbTextOrientation.pbTextOrientationHorizontal, _[code]......
Now It only populates first text box with the first string in the array (For 0th index) and rest textboxes contains empty strings ,though texts array has values.
Dim newdata(,) As String = New String(,) { _ {"foo", "bar"}, _ {"fum", "baz"} _
[code]....
If I change the outer loop to:
For Each str() As String In newdata
It builds ok but I don't get what I want. The outer loop process the elements of newdata as a 1d array and the inner loop sees each character of the strings from the outer loop.So...is there a way to use the for each structure and process a 2d string array? If so, what should I change? If not, what is the best alternative?
add all of the items of an enumeration into a an array of strings....
1 Enum Test apple = 0 plum = 1
[code]....
If possible I'd like to dynamically at the start of my code be able to add apple, plum, carrot and scotch to the contents of an array (really a combobox) and if I have to had another item to the Enum that it automatically be added to the array.I seem to keep having to add vendor names (replacing produce/liquor) and I need the items to show up in a large project in many places and it's a pain to have to add the item to each every time.
i have an array of 30 strings , the names of the commands send to the serial port, the serial port adresses 16 devices. each device has its own set of commands.
of course i could make subarrays for each device, but for the saving of memory it would be better to use a integer index to name the commands, so like command 0 to 30.
dim command(29) as array of strings. dim device(7) as array of devices.
I have a 2d array of chars and i need to start at (0,0) and creat a string and check it against some value then still then add another char to the first one and check it. I need to do that in every direction.[code]say im at the H their are like 8 way i need to check..
Ok so what i'm trying to do is grab some strings from a list box and put them in an array so i can list them in a message box each index of the array on a new line
So it comes up like this
you ordered : arrayindex1 arrayindex2 arrayindex3 and so on