473,503 Members | 3,884 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 1847
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(ByVal passfail() As String)
Dim i As Integer
For i = 1 To 44
Me.flgPrintingResults.set_TextMatrix(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(ByVal passfail() As String)
Dim i As Integer
For i = 1 To 44
Me.flgPrintingResults.set_TextMatrix(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
31529
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...
6
4114
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...
5
3403
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? ...
8
5205
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...
24
4345
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...
6
1549
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
2973
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...
1
1683
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
12392
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...
0
7188
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
7313
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...
1
6970
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
7441
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...
0
5558
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,...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
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 ...
0
366
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...

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.