Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
R&R Reporting Question
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00582873
Message ID:
00582888
Views:
19
Kevin,

lpCode is Long; you're passing it a string (cECode = "").

>
The help file for exeRuntime shows:
>
>BOOL FAR PASCAL execRuntime (int hReport, BOOL bWait,
>int cmdShow,LPINT lpiECode, LPLONG lplPageCount,
>LPSTR lpszEMsg, int emSize)

>
>So I declared is as:
>
> DECLARE Long execRuntime;
>  IN RrRpt32.Dll;
>  AS rr_ExecRuntime;
>    Long hReport,;
>    Long bWait,;
>    Long fsCmdShow,;
>    Long lpCode,;
>    Long lpPageCount,;
>    String emsg,;
>    Long emsgsize
>

>
>and I'm calling it like:
>
>LOCAL nWait AS Boolean
>LOCAL nShow AS Integer
>LOCAL cECode AS String
>LOCAL nPageCount AS Long
>LOCAL cMsg AS String
>LOCAL nMsgSize AS Long
>
>nWait = 1
>nShow = 1
>cECode = ""
>nPageCount = 0
>cMsg = ""
>nMsgSize = 200
>
>nRetVal = rr_ExecRuntime(lnReportHandle, nWait, nShow, @cECode, @nPageCount, @cMsg, nMsgSize)
>
>

>
>
>I'm getting a 'Data Type Mismatch' error. Anyone know what I'm doing wrong?
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform