Passing an array into an Event Handler?
An inventory project I am working on is requiring me to create JButtons (First, Last, Next, and Previous) which are supposed to cycle through and display (in JTextFields) the contents of an array of objects. I can make the buttons work if I do this:
numberfield.setText("This works when used in the event handler");
but it does not work when I try to do this:
numberfield.setText(dirtbikes[0].getNumber());
When I try this, I get this error:
InventoryGUITest2:java:124:cannot find symbol
symbol : variable dirtbikes
location : class InventoryGUITest2
numberfield.setText(dirtbikes[0].getNumber());
^
I'm not sure if what I am trying to do is possible, but any guidance would be greatly appreciated. I have included the code for the main class below. Thank you for your time.
import javax.swing.*; // imports all javax.swing classes
import java.awt.event.*; // imports event handling components
import java.awt.*;
public class InventoryGUITest2 extends JFrame implements ActionListener // class tests an instance of class Inventory using a GUI to display data
JTextArea textArea;
JLabel numberlabel, namelabel, speedlabel, pricelabel, stocklabel, restocklabel, valuelabel, totalvaluelabel; // creates JLabels
JTextField numberfield, namefield, speedfield, pricefield, stockfield, restockfield, valuefield, totalvaluefield; // creates JTextFields
JButton firstbutton, lastbutton, previousbutton, nextbutton; // creates JButtons for navigation
public static void main( String args[] ) // begins Java execution
Dirtbikes dirtbikes[]; // declares array variable
dirtbikes = new Dirtbikes[4]; //declares array with length of 4
// populate array
dirtbikes[0] = new Dirtbikes( "11", "49cc Dirt Bike", 4, 199.99, "25 mph" );
dirtbikes[1] = new Dirtbikes( "12", "90cc MotoX Bike", 7, 1299.99, "45+ mph" );
dirtbikes[2] = new Dirtbikes( "13", "70cc Pit Bike", 3, 359.99, "35+ mph" );
dirtbikes[3] = new Dirtbikes( "14", "50cc Street Rocket", 5, 879.99, "55+ mph" );
// end populate array
new InventoryGUITest2(dirtbikes); // creates new instance of itself
} // end main method
// constructor creates and runs GUI
public InventoryGUITest2(Dirtbikes[] dirtbikes)
this.setSize(500,300);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setTitle("Dirt Bike Inventory");
JPanel panel1 = new JPanel(); // creates panel to imbed buttons into bottom of frame
firstbutton = new JButton("First");
firstbutton.addActionListener(this);
panel1.add(firstbutton);
lastbutton = new JButton("Last");
lastbutton.addActionListener(this);
panel1.add(lastbutton);
previousbutton = new JButton("Previous");
previousbutton.addActionListener(this);
panel1.add(previousbutton);
nextbutton = new JButton("Next");
nextbutton.addActionListener(this);
panel1.add(nextbutton);
this.add(panel1, BorderLayout.SOUTH);
JPanel panel2 = new JPanel(); // creates panel to imbed labels and fields into frame
panel2.setLayout(new FlowLayout(FlowLayout.RIGHT));
numberlabel = new JLabel("Item Number: ");
numberfield = new JTextField(25);
numberfield.setEditable(false);
panel2.add(numberlabel);
panel2.add(numberfield);
namelabel = new JLabel("Item Name: ");
namefield = new JTextField(25);
namefield.setEditable(false);
panel2.add(namelabel);
panel2.add(namefield);
speedlabel = new JLabel("Top Speed: ");
speedfield = new JTextField(25);
speedfield.setEditable(false);
panel2.add(speedlabel);
panel2.add(speedfield);
pricelabel = new JLabel("Price: ");
pricefield = new JTextField(25);
pricefield.setEditable(false);
panel2.add(pricelabel);
panel2.add(pricefield);
stocklabel = new JLabel("# in Stock: ");
stockfield = new JTextField(25);
stockfield.setEditable(false);
panel2.add(stocklabel);
panel2.add(stockfield);
restocklabel = new JLabel("Restock Fee (5%): ");
restockfield = new JTextField(25);
restockfield.setEditable(false);
panel2.add(restocklabel);
panel2.add(restockfield);
valuelabel = new JLabel("Total Value with fee: ");
valuefield = new JTextField(25);
valuefield.setEditable(false);
panel2.add(valuelabel);
panel2.add(valuefield);
totalvaluelabel = new JLabel("Total Value with fee (for all items):");
totalvaluefield = new JTextField(25);
totalvaluefield.setEditable(false);
panel2.add(totalvaluelabel);
panel2.add(totalvaluefield);
this.add(panel2);
this.setVisible(true); // makes frame visible
this.setLocationRelativeTo(null); // centers window on screen
} // end constructor
public void actionPerformed(ActionEvent e)
if (e.getSource() == firstbutton)
numberfield.setText(dirtbikes[0].getNumber());
}
bwilde wrote:
I appreciate the help as everything I thought I had learned about Java has seemed to fall by the wayside in the shadow of making Swing/AWT work properly.You're not the first person to write this, or code like this in the forum. But realize it isn't true. GUI coding isn't a special case -- it's just another example of object-oriented programming. What's really happening is that the training wheels have come off: Writing a simple Swing example is often the first time one is writing anything that is not trivial.
Similar Messages
-
Best practice for passing parameters to a Timer event handler?
The code hinting is suggesting that I use a Timer object rather than setTimeout or setInterval, however I need to pass a parameter to the timer handler.
What is the best practice for doing this?
+ Subclass Timer?
+ Subclass TimerEvent?
+ Global variable?
+ other?
ThanksHmm. I don’t think I would’ve chosen that option. I would probably create a class that listens for the TimerEvent dispatches a custom event. Unless there is information you need in TimerEvent, I don’t see a need to extend it.
-
How to pass 1D array into matlab?
1 had 2 1-D array
array1 = 1D array signed 32-bit integer numeric
array2 = 1D array double-precision floating-point numeric
how do i pass this 2 arrays to matlab script??
help....as i'm very new to both labview and matlab.
thks,lynLabVIEW has a Matlab Script Node (Programs >> Mathematics >> Formula) that you can use to interface between the two programs. To pass arrays into the script node do the following:
1. Right-click on the left edge and select "Add Input"
2. Give the input a variable name in the termainal that was created.
3. Right click on the terminal and select Choose Data Type >> Real Vector.
You can now wire the 1D array to this terminal. You enter your Matlab Commands as text inside the node and you can create outputs the same way to created inputs. -
How to pass parameter (tray name) to event handler for Trays?
Hi,
I've several UI tray elements in my view and all these elements are associated with the action onToggleTrays.
I want to capture the name of the Tray and state of tray(expanded/collapsed).
For this when I try to add parameters to this event handler method, through IWD ParameterPassing, I can add only the expanded property. I'm not able to add the UI element (tray name).
Can you please suggest how to add/pass tray name and tray state to the event handler method?
Regards
Sagar Nandacreate a parameter for the action OnToggle say "id".
In wdDoModifyView get the reference of tray element and map its id to this parameter.
IWDTray tray=(IWDTray)view.getElement("Tray1");
tray.mappingOfOnToggle().addParameter("id",tray.getId());
IWDTray tray2=(IWDTray)view.getElement("Tray2");
tray2.mappingOfOnToggle().addParameter("id",tray2.getId());
Hope it helps. -
Passing the array into actionPerformed method
Hi friends! I am new at java. I made a tictactoe game board with GUI and it is designed according to nxn (desired any n value). When I pressed to any button, it should write an X to my board but I could not passed the button's action. My problem is that my actionPerformed method does not accept array button[j]. In the below there is a part of my code :
for(int j=0;j<button.length;j++) // adding the buttons
button[j].addActionListener(this);
public void actionPerformed(ActonEvent evt)
// what can I read here for detecting the right button? button length is changable, it is depent on what we desire at first.
// I tried this code in this area but it does not work:
// if (evt.getSource()==button[j])
// button[j].setText("X");
// normally, it works if I write every button individually like that:
// button1.addActionListener(this); (same for other buttons)
// public void actionPerformed (ActionPerformed evt)
// if (evt.getSource()==button1)
// button1.setText("X"); (same code for other buttons)
// but I want to make a generalized board action
}I will be appreciated with your helps...
MustyHi musty4284,
The getSource method of ActionEvent(not ActonEvent) returns an object and the way you're comparing objects is wrong.
Theorically, you should do something like this :
public void actionPerformed(ActionEvent evt) {
JButton b = (JButton) evt.getSource();
if ( button[j].equals(b) ) {
}Edit :
When using a listener for an array of JButton, it is a good idea to give a unique identifier to each button (for example, their index in the array). The JButton class has a setName method not to confuse with the setText method.
While building your array of JButton, you can do :
JButton[] button = new JButton[9];
for (int i = 0; i < 9; i++) {
button[i] = new JButton();
button.setName(i);
While handling the event :public void actionPerformed(ActionEvent evt) {
JButton b = (JButton) evt.getSource();
int index = Integer.parseInt(b.getName());
button[index].setText("X");
Edited by: Chicon on Oct 4, 2009 11:20 AM -
How to pass import/export parameters while event handler call in OOABAP?
Hi Experts,
Is it possible to use export parameter in set handler method?
Actually my requirement is while creating customer through XD01 after committing to data base i want that customer.
So i exporting customer no. in one of the badi before commit and importing in my custom class (zabc) after commit.
Using event TRANSACTION_FINISHED and checking KIND eq C.
My question is instead of using import export abap command is it possible to pass those parameters in ??
Sample : SET HANDLER zcl_sd_after_commit=>get_kunnr.
Regards,
Raj....Yes it can
but the event should be defined in the BADI so why do you need to do it?
CLASS MY_CLASS_1 DEFINITION FINAL.
PUBLIC SECTION.
METHODS GET_KUNNR IMPORTING KUNNR TYPE KUNNR.
EVENTS MY_EVENT EXPORTING VALUE(KUNNR) TYPE KUNNR.
ENDCLASS.
CLASS MY_CLASS_2 DEFINITION FINAL.
PUBLIC SECTION.
METHODS MY_METHOD FOR EVENT MY_EVENT OF MY_CLASS_1
IMPORTING KUNNR.
ENDCLASS.
CLASS MY_CLASS_1 IMPLEMENTATION.
METHOD GET_KUNNR.
RAISE EVENT MY_EVENT EXPORTING KUNNR = KUNNR.
ENDMETHOD.
ENDCLASS.
CLASS MY_CLASS_2 IMPLEMENTATION.
METHOD MY_METHOD.
WRITE KUNNR.
ENDMETHOD.
ENDCLASS.
So it can move KUNNR from class1 to class2
DATA: MY_OBJ_1 TYPE REF TO MY_CLASS_1.
DATA: MY_OBJ_2 TYPE REF TO MY_CLASS_2.
PARAMETERS: P_KUNNR TYPE KUNNR.
START-OF-SELECTION.
CREATE OBJECT MY_OBJ_1.
CREATE OBJECT MY_OBJ_2.
SET HANDLER MY_OBJ_2->MY_METHOD FOR MY_OBJ_1.
MY_OBJ_1->GET_KUNNR( P_KUNNR ). -
Passing in arrays into pl/sql process
I have a package defined as such:
MYPACKAGE_PKG.ASSIGNDESTINATIONS(p_destinations IN destination_array, p_user IN user_array);
The two multiselect apex items are
P103_DESTINATIONS
P103_USERIDS
the non-array call would be like this
MYPACKAGE_PKG.ASSIGNDESTINATIONS(p_destinations => :P103_DESTINATIONS ,
p_user => :P103_USERIDS);
I just don't know how to input the arrays...any help would be appreciated.Something more like this would work - I put the procedure in the declare b/c i was too lazy to compile one-
DECLARE
destination_varray apex_application_global.vc_arr2;
userid_varray apex_application_global.vc_arr2;
PROCEDURE do_something(p_destination IN apex_application_global.vc_arr2,
p_users IN apex_application_global.vc_arr2) IS
BEGIN
FOR i IN 1 .. p_destination.COUNT LOOP
dbms_output.put_line(p_destination(i));
END LOOP;
FOR j IN 1 .. p_users.COUNT LOOP
dbms_output.put_line(p_users(j));
END LOOP;
END do_something;
BEGIN
destination_varray := apex_util.string_to_table('HAWAII:CHICAGO:NEW YORK');
userid_varray := apex_util.string_to_table('JOHN:CHRIS:MIKE');
do_something(P_DESTINATION => destination_varray, P_USERS => userid_varray);
END; -
hi,
is it possible to pass an array into a resultset? if yes please indicate how.
thank you all in advanceHi,
Sorry for the confusion, here's what I'm trying to accomplish.
I'm trying to create a report in Crystal Report and use Java as data source. My Java application needs to generate some value and pass them to the report as parameters. After some research I've found that I can use a Java Bean class as data source for Crystal Report that returns a ResultSet. Therefore I'm trying to pass some values in my Java app into the Bean class as array and convert them to a ResultSet for Crystal Report.
If you know of a different way please let me know, otherwise, this is what I meant by passing array into resultset.
thanks for your reply, -
An event handler for several subclasses.
I've been trying to write an event handler that is parameterized by a window
being passed to it. The event handler is intended to handle the exception event
that occurs when the window completes. I have had problems trying to write this.
The scenario is as follows.
I have a task that listens to events that respresent requests for a window being
opened. On receiving these, it starts the window, also as an asynchronous task.
The windows that may be opened (say window classes B, C, and D) are all
subclasses of window class A. The event handler that I register for (after
instantiating the window) takes a window of class A as parameter. It responds to
the exception events for the Display() method of window passed in.
Now the problems I have encountered are as follows :
To allow the event handler to respond to the exception event of a window of
class A, class A has the exception event defined for it. To allow me to start a
window of class B where completion = event, I also have to define the same
exception event. This hides the return and exception for class A. The
implications of this in the event handler is that the event cannot be trapped
unless I cast the parameter passed in into class B on the ' when return_event '
line. This makes the event handler specific to class B.
(This situation is also presumable caused by the fact that each subclasses
overrides the Display method of window class A, and the exception event is
defined for the Display method.)
An alternative approach I tried was using interfaces. I defined the exception
event as an event on an interface. This was defined with the same parameters as
the exception events of classes B, C, and D would have (ie. the exception
event had two parameters - one of type GenericException, and one of ErrorMgr). I
then made classes B, C, and D implement the interface. The event handler
parameter would be the interface rather than class A. However class B would not
compile as the GenericException parameter for the event in the interface uses
the input mechanism, but the GenericException parameter for the exception event
in the display event of classes B, C, and D uses copy input. I have ben unable
to find a way to change the mechanism for event parameters.
Has anybody got any ideas as to how I may be able to achieve the goals of an
event handler that can respond the exception event of a number of subclasses.
Thanks
Steve Elvin
Systems Developer
Frontline Ltd.
UK.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Steve,
Try this. Have a method in your super class A , say StubDisplay
which processes the event loop.
Also make this method return Exception and/or completion events you
desire.
Instead of overriding Display() in your sublclasses, override this
StubDisplay method.
You need not have to redefine the exception/completion events in
your sublclasses B,C ..because they naturally inherit from the super class
A.
Using interfaces may not be a good idea in this case because, you
will be forced to implement them in your subclasses even if you dont
need them in some specific cases.
Good luck!
Ajith Kallambella M.
Forte Systems Engineer,
Internationational Business Corporation.
From: [email protected][SMTP:[email protected]]
Reply To: [email protected]
Sent: Wednesday, May 13, 1998 4:42 AM
To: [email protected]
Subject: An event handler for several subclasses.
I've been trying to write an event handler that is parameterized by a
window
being passed to it. The event handler is intended to handle the exception
event
that occurs when the window completes. I have had problems trying to write
this.
The scenario is as follows.
I have a task that listens to events that respresent requests for a window
being
opened. On receiving these, it starts the window, also as an asynchronous
task.
The windows that may be opened (say window classes B, C, and D) are all
subclasses of window class A. The event handler that I register for (after
instantiating the window) takes a window of class A as parameter. It
responds to
the exception events for the Display() method of window passed in.
Now the problems I have encountered are as follows :
To allow the event handler to respond to the exception event of a window
of
class A, class A has the exception event defined for it. To allow me to
start a
window of class B where completion = event, I also have to define the same
exception event. This hides the return and exception for class A. The
implications of this in the event handler is that the event cannot be
trapped
unless I cast the parameter passed in into class B on the ' when
return_event '
line. This makes the event handler specific to class B.
(This situation is also presumable caused by the fact that each subclasses
overrides the Display method of window class A, and the exception event is
defined for the Display method.)
An alternative approach I tried was using interfaces. I defined the
exception
event as an event on an interface. This was defined with the same
parameters as
the exception events of classes B, C, and D would have (ie. the
exception
event had two parameters - one of type GenericException, and one of
ErrorMgr). I
then made classes B, C, and D implement the interface. The event handler
parameter would be the interface rather than class A. However class B
would not
compile as the GenericException parameter for the event in the interface
uses
the input mechanism, but the GenericException parameter for the exception
event
in the display event of classes B, C, and D uses copy input. I have ben
unable
to find a way to change the mechanism for event parameters.
Has anybody got any ideas as to how I may be able to achieve the goals of
an
event handler that can respond the exception event of a number of
subclasses.
Thanks
Steve Elvin
Systems Developer
Frontline Ltd.
UK.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Event handler eats up memory. Bad programing and/or bug.
Hello
I've been programming a GUI for a project. The basics of the program is a sample routine that updates a array once a second. Once the array is updated I use a event handler to plot the new array in a graph.
When I wrote this gui I think I've stumbled upon a bug in Labviews memory allocation.
If you have two loops. One that builds a array and then signals a loop with a eventhandler that reads the array and the event handler is stoped for a few seconds (by opening a sub vi or something inside the event handler), the memory goes berserk. When the event handler is free after the stop the memory is still allocated and does not return.
I could not find any information on this problem in the forum so I thought I would share this information with everyone. I managed to reproduce this phenomena in a small example (attached), if anyone is interested in it. The problem is simple to fix once you recognize the problem. However it was not the simplest problem to find (imho that is ).
Regards
Andreas Beckman
Attachments:
bug.zip 23 KBWhere are you seeing the memory being allocated? What tool are you using, task manager or LabVIEW profiling? I'm not seeing what you describe (LV 7.1.1 on a 3.4 GHz Pentium 4 w/ 1 Gb memory)
Thanks,
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
Call to pl/sql from java event-handler
How can I call pl/sql procedure or function from java-script event handler
Thanks,
AnnaAnna,
You cannot call any arbitrary PLSQL code from the forms, only "standard"/custom event handlers can be called through do_event Javascript fuction, syntax :
do_event(this.form,this.name,1,'ON_CLICK,'');
where:
1 - button intstance, if you have more than one instance of the same button on the screen this should be 2,3,4.....
'ON_CLICK' - is the predefined event type
'' - the last argument is any user defined string which will passed down to the PLSQL event handler.
Thanks,
Dmitry
null -
Hi,
This is regarding passing portlet parameters to the event handler. Whenever an event is raised, I have been using a javascript function, which constructs the URL to the portal event handler and then submits the form. The url would look like
http://host:port/portal/event?event_Param=xyz&_eventName_event1=event1
(The query strings for dad, schema etc are not shown in the url above, but they are aslo passed).
Is this the only way that one raises an event? Is there a method by which I can pass the the portlet parameters hidden in the request, so that they dont show up in the URL string?
I tried doing a "POST" form submission, but the portal didnot respond to this action.
Thanks.
JitendraHi,
As there is no such event for item published, we can detect the level of publication of the corresponding file using the
SPFile.Level property in the ItemUpdated event, there will be three levels:
Published, Draft, Checkout.
Here is a code demo about how to check whether a file is published in ItemUpdated event:
public override void ItemUpdated(SPItemEventProperties properties)
base.ItemUpdated(properties);
SPListItem item = properties.ListItem;
SPFile file = item.File;
//if the file is published
if (file.Level == SPFileLevel.Published)
Feel free to reply if there are still any questions.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
How to pass vector array to JasperReport
I have a query looks like this... in my JasperReport. (select * from employee where employee_id = $P{Emp_ID} order by employee_id)
I already created a vector array contains a list of employee IDs from database. Now, I want to pass the array into the query to get a specific list of employees.
Similar to SQL prompt below.
SQL> select * from employee where employee_id in (1,3,4,5,22,23,45) order by employee_id.jasontey,
I'm doing the samething here but with arrays and I'm getting ClassCastException.
Servlet1:Vector PatientInfoVector = new MdlPatient().getPatientInfo(userId,patientNumber);
int patientLength = PatientInfoVector.size();
MdlPatient[] PatientInfoArray = new MdlPatient[patientLength];
for (int i=0; i<patientLength; i++)
PatientInfoArray[i] = (MdlPatient)PatientInfoVector.elementAt(i);
session.setAttribute("patientSession",PatientInfoArray);
response.sendRedirect(response.encodeRedirectURL("/FsuSecurity/SrvSecurity"));
SrvSecurity:
MdlPatient PatientInfo = (MdlPatient)session.getAttribute("patientSession"); This is where I'm getting the ClassCastException.
int patientNumber = PatientInfo.getPatientNumber();
Thanks if you can help,
Doug -
Event Handling in labview with arrays as event data
Hey folks,
I have a Labview Application which uses a dll to read Ethernet data. The setup is such that, when the dll has fresh data it sends out an event to the Labview Application so that the fresh data can be displayed.
However i have only managed to get this event based mechanism to send out a single structure at a time. Hence if there are 10 fresh data values, i need to send out 10 events (each event structure contains the parameter name, parameter value, unit and time stamp). It would be more efficient to send out an array of structures in a sigle shot.
I have tried this but Labview keeps crashing saying that an error was encountered and Labview needs to close along with an access violation message. I did a lot of online searching and found some LV code for event handling but not come accross any implementation which uses arrays as evend data. Is this supoorted? And if so is there any example vi that can be shared so that i get some knowledge about this.
Many Thanks in adavance,
Abel.I also gave a try by using a variant as the event data type instead of the cluster which contains the array of floats. I converted the cluster into a variant and used that to create the user event reference. Followed the same logic while decoding the dats.
But still the crash.... Here is the windbg output...
ModLoad: 07580000 075b7000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvalarms.dll
ModLoad: 0ca90000 0cb72000 C:\Program Files\National Instruments\LabVIEW 2012\resource\mesa.dll
ModLoad: 0c7f0000 0c7f9000 C:\Program Files\National Instruments\LabVIEW 2012\resource\lvuste.dll
ModLoad: 35000000 3509b000 C:\Program Files\National Instruments\Shared\TDMS\tdms.dll
ModLoad: 0c860000 0c87c000 D:\SapphireViewer\dll\SapphireClientDll.dll
ModLoad: 0e240000 0e2c7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCP80.dll
ModLoad: 0e2d0000 0e36b000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.6195_x-ww_44262b86\MSVCR80.dll
(1cb0.1a34): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0e47f8b4 ebx=051f0040 ecx=051f0040 edx=061e5764 esi=22820840 edi=07b10040
eip=03c2050c esp=0e47f5cc ebp=0e47f810 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\National Instruments\LabVIEW 2012\resource\tdcore_12_0.dll -
tdcore_12_0!LvVariant:etContents+0xac:
03c2050c 837e3100 cmp dword ptr [esi+31h],0 ds:0023:22820871=????????
I cannot really tell whats going on. Looking for some pointers.
Regards,
Abel. -
Event handler elements inside of the array
I have an array of clusters, of which inside the cluster are buttons. I want to be able to tie an event handler to these buttons ( they would all handle the event the same, the only difference would be the index they were handling)
A while back a similiar problem was posted here:
http://forums.ni.com/t5/LabVIEW/Array-of-Clusters-with-Graph-Y-Scale-Change-Event/td-p/1194181/page/...
However, this solution did not appear to be able to deliver the index of which button in the array was pressed .. this is critical for my application. The button is basically an "edit' buttonw which allows the user to edit the elements of the cluster through a popup. Obviously I need to know which cluster the user intends to edit.nathand wrote:
One option: when the code starts, build an array of references to the edit buttons inside each cluster. Then, in the event case, search that array for the reference that triggered the event. The index at which the reference is found tells you which cluster to edit.
This might work, but it should be possible for the user to add/delete elements from the array so I would need to be able to do this even after program initialization.
Currently, I have just made dozen buttons alongside the array of clusters. But this workaround won't allow past a fixed number at program initialization.
Maybe you are looking for
-
External Drive crashed-how to restore from Time Machine?
I've been using TM to back up my internal, as well as an external drive. The external has been acting a bit flaky the past week or so, and I think it just bit the dust. How do I go about just restoring the data that was on it to a new external HD? I
-
How can I send "new" iMessages to apple users?
I am unable to send new iMessages but I can send iMessages from previous threads. How can I send new iMessages to other apple users?
-
Date Track history tables in Oracle HRMS & Discoverer
Hello experts, I will be glad if anyone can help thru. I am trying to develop the DIS report for Audit purpose that tracks all the changes entered by Data Entry clerks, regardless of effective date. Mainly from Person Form and Assignment Form. Is the
-
Dear All, I want to generate alert when ever a sales order is added in the system by sales team (user) and send this alert to purchase team ( user). how to perform this. swap
-
I'm slow getting up to speed with iCloud. It seems as if, in th email application, I've been automatically assigned my old mobileme email address as my iCloud email address. How do I change it within preferences? It looks grayed-out where I can't