on 12-29-2014 5:59 PM
Hi Victor;
Just to make sure that all the object classes are built correctly ... can you try optimizing your PBL's and then doing a Full Build and see if that helps the situation?
Also, can you tell us more about your PB version, build and O/S being used?
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor;
Yes, that seems to point to improper P-Code being generated or stored in your PBL.
PowerBuilder uses the old DOS technique to replace objects and executable P-Code in its PBL's. That is to say it just marks the old class as logically deleted and then creates a new area. However, it is possible for PB to pick the old logically deleted P-Code instead of the new version.
The process of Optimizing your PBL's and then doing a full build should clean out these "ghost" versions of all the classes. I actually have ORCAScript command files that do this on my libraries on a regular basis automatically. For my STD Foundation Class frameworks - I perform this procedure every time I release a new version and before I start the next development cycle.
HTH
Regards ... Chris
Is a variable with name stl_datos declared anywhere else than locally? Instance?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have code in the Close or CloseQuery events?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this code has in buttom:
Integer li_row
st_parametros stl_datos
stl_datos.li_posicion = 1
li_row = dw_data.GetSelectedRow(0)
If li_row > 0 Then
si_check = 1
gs_codigo = dw_data.Object.cod_cli[li_row]
stl_datos.ls_dato2 = dw_data.Object.cod_cli[li_row]
stl_datos.ls_dato3 = dw_data.Object.nom_cli[li_row]
CloseWithReturn(w_co_ma_clientes,stl_datos)
End If
In close events don't have code
I misunderstood what the issue was. It doesn't look like it has anything to do with CloseWithReturn. It looks like your code is trying to set values to the
stl_datos.ls_dato2 and stl_datos.ls_dato3 but what is showing as populated in the debugger is stl_datos.ls_dato3 and stl_datos.ls_dato4.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.