Hi,

In DF24.0 the following does not compile:

Code:
Use Windows.pkg
Use cApplication.pkg

Object oApplication is a cApplication
End_Object

Winput "done" windowindex
You'll get an error:
- 2 ERRORS HAVE BEEN FOUND.
----Compile Finished (with Errors and Warnings) in 0,9 seconds ----
----Compiler Warning Summary----
- Warning 4533: C:\Test\test.src (ln 11) Obsolete Command Obsolete command: Winput. Use Message_Box
-- Warning 4533: Obsolete Command Obsolete command: GetAddress. Use AddressOf Function
----Compiler Error Summary----
- Error 4539: Illegal Type Conversion Conversion from 64-bit pointer to integer is not allowed, use Longptr instead of Integer.
-- Error 4539: Illegal Type Conversion Illegal datatype conversion (would lead to a runtime error if not corrected)
This used to compile fine in DataFlex 19.0 and earlier (haven't tested other version except that I saw this was also a problem in DF20.1)

The following does address the issue, but it would be nice if it was addressed.
Code:
Use Windows.pkg
Use cApplication.pkg

Object oApplication is a cApplication
End_Object

String gsDone
Move "done" to gsDone
winput gsDone windowindex
You might wonder, why use the obsolete command Winput?
Because you can alt-tab from another application and read output from the output window, which you cannot do with messagebox.

In small 1 off applications for maintenance it is convenient to be able to read the output of your showln's.

Also note that the winput command continues to work WITHOUT the string, but it's supposed to work with just a string literal.. according to the documentation.

Thanks
--
Wil