Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

longptr datatype error on PB 12.6

$
0
0

Hi everyone,

 

I migrated an application from PB 12.5.1 to PB 12.6 build 3506, and the migration assistant didn't show me errors during the process. I am using Windows 7 and it is updated.

 

I began to test the application on PB 12.6 and when it was trying to retrieve a datawindow the application shows me the following error: "Retrieve argument 1 does not match expected type." This error is occurring in many events.

 

The datawindow (dw_1) has an event where is called the retrieve function, and the event has an Argument  which datatype is longptr. On PB 12.5 it was a Long datatype.

 

The option I found to solve it, is converting the argument to a Long datatype before retrieve the datawindow, for example:

 

LONG lparam2

 

lparam2 = Long(lparam) // lparam is the argument (see attachment)

 

dw_1.Retrieve(lparam2) // Replaced script: dw_1.Retrieve(lparam)

 

 

My question is: Is it possible to fix this error in a different way? I can modifiy several events, but I want to know if is a PB bug or is normal on this PB version.

 

Thank you very much, I appreciate your help.

 

 

Luis G.

 

 

P.D. I was reviewing the discussions on this network, the updated PB builds, and I didn't find something that helps me with this issue.


Viewing all articles
Browse latest Browse all 3523

Trending Articles