|
by: rmorvay |
last post by:
I have a requirement to search a multi-dimensional array for an item, then
delete the item and "reset" the array so that their are no gaps in the
resulting array. I have been trying to figure out how to use the Array.Copy
method to accomplish this but it seems to only work for single dimension
arrays. Here is a code sample:
'dim arrTest(600,3) as string 'Actual array dimension needed
dim arrTest(600) as string 'Used only in this test...
|
by: Brian P |
last post by:
I am getting an invalid cast exception when I try
to take an ArrayList with datetime values and use
the ToArray method to create an object array.
I need to use an object array becase I'm working
with various datatypes and need the code to
be as generic as possible.
Most of to code involves dynamically determining
the datatype, which all works.
|
by: Richard Forester |
last post by:
Hello.
I need some help understanding what goes on when an array is copied. I
create 2 arrays and copy one to the other:
int pins = {9, 3, 7, 2};
int copy = new int;
for (int i = 0; i != copy.Length; i++)
|
by: Christian Blackburn |
last post by:
Hi Gang,
I can't seem to figure out how to create an object array in VB.NET 2003. In
VB6 you would just select an object copy and paste it and that was that. I
don't know why in the heck they decided to change that. I thought it was
great. I assume a 2002 answer would work in 2003 as well. Can somebody
tell me how to create an object array or point me to an MSDN article
regarding it?
Thanks,
Christian Blackburn
|
by: OpticTygre |
last post by:
If I pass an object to another form via the new form's tag property, I want
to create an object exactly like it, with it's properties and all, but have
it be a copy of the object passed through, and not just a reference to the
object.
Example:
Public Sub Form_Load(ByVal sender as Object, ByVal e as EventArgs)
Dim obj as Object = Activator.CreateInstance(Me.Tag.GetType())
|
|
by: illegal.prime |
last post by:
I would like to have an array of objects (whose class I define) and
then just invoke either:
MyClass clonedArray = (MyClass) myArray.Clone();
OR
Array.Copy(myArray, clonedArray, myArray.Length);
and have an array of cloned objects (i.e. the new array of objects
aren't the objects contained in my original array). But instead it
seems necessary for me to have to iterate over my entire array and
individually clone each element in the...
|
by: Favre Fan |
last post by:
Can anyone help me with the array.copy?
I have an array coming in from a text file.
Info is being read in with my str() string array
I then want to copy that array from the third element to the end (seperated by commas). I've also tried the copyTo and can't get that to work either.
Array.Copy(str, gradesArray, 3)
Why do I keep getting this message?
Argument Null Exception was Handled.
|
by: kellox |
last post by:
Does anybody know the difference between the two static methods Buffer.BlockCopy and Array.Copy? It is said that Buffer.BlockCopy is faster than Array.Copy since it only checks boundary and then moves the content with the system call m_memmove.
According to the documentation though, Buffer.BlockCopy works with primitive types such as byte, char, etc.
But I've found a case where Buffer.BlockCopy doesn't work as it should (or maybe I'm missing...
|
by: linuxfedora |
last post by:
Which one is faster or any other better way to do it.
I have an array of byte with name:
sendBuffer, and i will like to make some thing like that
the value started from index of the array in realDataSent is now copy
to the beginning of the sendBuffer.
I have tried:
Array.Copy(sendBuffer,
realDataSent, sendBuffer, 0, sendBuffer.Length - realDataSent);
|
by: Alan Mosley |
last post by:
I have a multi dimensional array, I want to copy, but when I do It shows 0's
in the second dimension.
Can I copy a multi dimensional array?
if so how do i do it.
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|