Home > database >  A null object reference at the line... Error handling
A null object reference at the line... Error handling

Time:10-28

In one window open (w_2) a window by pressing the button, and then reference w_2 window of dw, coding, prompt a null object reference at the line,,,,,,,
If isvalid (w_win02)=true then
W_win02. Event open ()
W_win02. Dw_1. Settransobject (sqlca)
W_win02. Dw_1. Retrieve ()
W_win02. Dw_1. Setfilter (" inoutno='" + l_inoutno + "' ")
W_win02. Dw_1. Filter ()
W_win02. Dw_2. Settransobject (sqlca)
W_win02. Dw_2. Retrieve ()
W_win02. Dw_2. Setfilter (" inoutno='" + l_inoutno + "' ")
W_win02. Dw_2. Filter ()
End the if
What's the matter? Please directly, thank you!

CodePudding user response:

Error message indicates that reference the empty object,
Looking at you send the code snippet is no problem, you can run also illustrate this point,
Program debugging, want to have a context, w_win02 and w_2 is the same window? Button is what way directly to open another window? Your problem specification more detailed, more easy to determine,

CodePudding user response:

Is such, win02 is the main window, there is a button, this button, open a window to 1, and then in the window 1 selected record point confirmed that the data feedback to win02, the code above is not an error, to not perform,

CodePudding user response:

What is the type of window window 1?

CodePudding user response:

Starting with the response! , it was the main!

CodePudding user response:

Process is no problem as you describe, it can be operation that
Or a statement is a problem with the details, there is no relevant code, there is no way to help you
  • Related