473,654 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pass array elements of a form into a flexGrid

28 New Member
Hello !

I have a form called frmAutoTest where i created an arry

Public Step_Result(44) As String

This array holds the pass or fail from a test.
When i set the breakpoints i see that the array from 1-44 is filled with passed or fail.
I also design a second form called frmResult which it has a flexGrid and a print button.
What i want is to pass the data of the array which is in the form frmAutoTest into the flexGrid which is in the frmResult.
Can anyone help me?
Thanks
Mar 29 '07 #1
6 1855
vijaydiwakar
579 Contributor
Hello !

I have a form called frmAutoTest where i created an arry

Public Step_Result(44) As String

This array holds the pass or fail from a test.
When i set the breakpoints i see that the array from 1-44 is filled with passed or fail.
I also design a second form called frmResult which it has a flexGrid and a print button.
What i want is to pass the data of the array which is in the form frmAutoTest into the flexGrid which is in the frmResult.
Can anyone help me?
Thanks
as this is a public array u can use it by creating object of it
drive a loop and assign it to perticular cell with the help of textmatrix property
Mar 29 '07 #2
Stroumfs
28 New Member
I didn't presented it very well. Actually the array is private . I changed it to public because i couldn't have access to it.

Is the following what you mean?
Public Sub passresult(ByVa l passfail() As String)
Dim i As Integer
For i = 1 To 44
Me.flgPrintingR esults.set_Text Matrix(1, 1, passfail(i))
Next

End Sub
Mar 29 '07 #3
pureenhanoi
175 New Member
Hello !

I have a form called frmAutoTest where i created an arry

Public Step_Result(44) As String

This array holds the pass or fail from a test.
When i set the breakpoints i see that the array from 1-44 is filled with passed or fail.
I also design a second form called frmResult which it has a flexGrid and a print button.
What i want is to pass the data of the array which is in the form frmAutoTest into the flexGrid which is in the frmResult.
Can anyone help me?
Thanks
insert this code into frmResult
Expand|Select|Wrap|Line Numbers
  1. private sub form_load()
  2. dim i as integer
  3. flexGrid.rows = 1
  4. flexGrid.cols = 1
  5. flexGrid.TextMatrix(0,0) = "Pass or fail"
  6. for i=1 to 44
  7.      flexGrid.AddItem Step_Result(i)
  8. next i
  9. end sub
  10.  
Mar 29 '07 #4
vijaydiwakar
579 Contributor
I didn't presented it very well. Actually the array is private . I changed it to public because i couldn't have access to it.

Is the following what you mean?
Public Sub passresult(ByVa l passfail() As String)
Dim i As Integer
For i = 1 To 44
Me.flgPrintingR esults.set_Text Matrix(1, 1, passfail(i))
Next

End Sub
ya some what like that
Mar 29 '07 #5
Stroumfs
28 New Member
Thanks for the help.
It doesn't work exactly like this but you gave me an idea.
Mar 29 '07 #6
vijaydiwakar
579 Contributor
Thanks for the help.
It doesn't work exactly like this but you gave me an idea.
try it
if it is not up to the mark then i'll guide u
Mar 29 '07 #7

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

Similar topics

5
31538
by: John | last post by:
I would like to pass array variables between URLs but I don't know how. I know its possible with sessions, but sessions can become useless if cookies are disabled. I have unsuccessfully tried using post and get methods. Thank you John
6
4139
by: Herrcho | last post by:
in K&R Chapter 6.3 it mentions two methods to calculate NKEYS. and points out the first one which is to terminate the list of initializers with a null pointer, then loop along keytab until the end is found is less efficient than using sizeof operator , since size of the array is completely determined at compile time. i don't quite understand this. Could anyone explain to me in detail ?
5
3414
by: wilson | last post by:
Dear all, In this time, I want to pass array to function. What should I declare the parameter in the function?i int array or int array? Which one is correct? /******************************************************** Below is my code: ********************************************************/
8
5226
by: ljlevend2 | last post by:
If a property's type is an array and the property is exposed in a PropertyGrid, then the property can be expanded so that the user can view and edit the array elements. But, I've noticed that if the property is ReadOnly then the expanded array elements can still be edited. I need to make the elements ReadOnly if the property is ReadOnly. Is this possible? Thank you, Lance
24
4370
by: RyanTaylor | last post by:
I have a final coming up later this week in my beginning Java class and my prof has decided to give us possible Javascript code we may have to write. Problem is, we didn't really cover JS and what we covered was within the last week of the class and all self taught. Our prof gave us an example of a Java method used to remove elements from an array: public void searchProcess() { int outIt=0;
6
1556
by: Kumar | last post by:
How should I declare the array elements being half word? and the array elements of the type byte in C?? Please help Kumar
5
2996
by: FrederikVds | last post by:
I have a function which can be called with an unlimited number of arguments. I want to call another function with exactly the same arguments. I know I can get the arguments in the arguments object, and as such also in an array, but how do you pass the elements of an array to another function as parameters? I hope you understand what I mean. Thanks,
1
1689
by: koval | last post by:
Type mismatch error occured when calling HTML array elements through Request.form("txtlrno" & i) after self posting the form, please anyone help me immediately because is in crisis.
14
12426
by: dan | last post by:
I would like to have the preprocessor automatically generate the number of array elements requested. Each element is zero. The elements get pasted into a larger array. The other elements may be non-zero. ***** Here is an example of what I need to do: #define YEAR_1 2005 #define YEAR_2 2007 #define YEARS (YEAR_2 - YEAR_1 + 1)
0
8290
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,...
0
8815
Oralloy
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...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
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
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
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...

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.