473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Arrays manipulation

I downloaded a program and in the program, the following declaration exists:
Expand|Select|Wrap|Line Numbers
  1. Dim p(1 To 5,1 To 6) As Integer
  2. For i = 1 To 5
  3. For j= 1 To 5
  4. if p(i,j) = 1 Then
  5. 'action starts here
  6. End If
  7. Next
  8. Next
The question is, how would the program do the manipulation so that p(i,k) becomes one?
Nov 21 '14 #1
5 1297
Rabbit
12,516 Expert Mod 8TB
I don't know what you are asking about. Can you explain more clearly.
Nov 21 '14 #2
What I meant is that, how would the application manipulate the p(i,j) so that the outcome will be one?
Nov 21 '14 #3
Rabbit
12,516 Expert Mod 8TB
You haven't explained any more clearly than you did before but do you mean how do you set the value of the array at index i, j to 1?
Expand|Select|Wrap|Line Numbers
  1. p(i,j) = 1
Nov 21 '14 #4
Yes, that is what I want.
Nov 22 '14 #5
Rabbit
12,516 Expert Mod 8TB
Glad I could help.
Nov 23 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Abdullah Kauchali | last post by:
Hi folks, Can one rely on the order of keys inserted into an associative Javascript array? For example: var o = new Object(); o = "Adam"; o = "Eve";
34
by: Christopher Benson-Manica | last post by:
If an array is sparse, say something like var foo=; foo=4; foo='baz'; foo='moo'; is there a way to iterate through the entire array? --
2
by: Gary Smith | last post by:
I am using Visual Basic for ASP.Net programming. I would like to kow the string manipulation using multi dimensional arrays. for example. How to declare multi dimensional array How to read and...
6
by: Dennis | last post by:
I was trying to determine the fastest way to build a byte array from components where the size of the individual components varied depending on the user's input. I tried three classes I built: (1)...
38
by: Peteroid | last post by:
I looked at the addresses in an 'array<>' during debug and noticed that the addresses were contiguous. Is this guaranteed, or just something it does if it can? PS = VS C++.NET 2005 Express...
12
by: Sheldon | last post by:
Hi, I have two arrays that are of the same dimension but having 3 different values: 255, 1 or 2. I would like to set all the positions in both arrays having 255 to be equal, i.e., where one...
8
by: martin-g | last post by:
Hi. I have a question on arrays in VBA. I'm a C++/C# programmer and didn't expected arrays in VBA to be so helpless, or maybe it only seems to me that they are helpless. For example in C++ we...
10
by: Peter Duniho | last post by:
This is kind of a question about C# and kind of one about the framework. Hopefully, there's an answer in there somewhere. :) I'm curious about the status of 32-bit vs 64-bit in C# and the...
3
by: sjsean | last post by:
All thanks in advance for reading my post. I am new to using js and more accustomed to vbscript. I had written code which created a shopping cart into an array using vbscript and then...
16
by: mike3 | last post by:
(I'm xposting this to both comp.lang.c++ and comp.os.ms- windows.programmer.win32 since there's Windows material in here as well as questions related to standard C++. Not sure how that'd go over...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.