>how convert vb coding to vfp?
>
>Public Const SC_SIZE = &HF000&
>Public Const SC_MOVE = &HF010&
>Public Const SC_MINIMIZE = &HF020&
>Public Const SC_MAXIMIZE = &HF030&
>Public Const SC_NEXTWINDOW = &HF040&
>Public Const SC_PREVWINDOW = &HF050&
>Public Const SC_CLOSE = &HF060&
>Public Const SC_VSCROLL = &HF070&
>Public Const SC_HSCROLL = &HF080&
>Public Const SC_MOUSEMENU = &HF090&
>Public Const SC_KEYMENU = &HF100&
>Public Const SC_ARRANGE = &HF110&
>Public Const SC_RESTORE = &HF120&
>Public Const SC_TASKLIST = &HF130&
>Public Const SC_SCREENSAVE = &HF140&
>Public Const SC_HOTKEY = &HF150&
>
>Public Const WM_SYSCOMMAND = &H112
1) Const is the #Define compile-time constant preprocessor directive in VFP
2) &H is 0x in VFP (that's zero-x)
Public Const SC_SIZE = &HF000&
Public Const SC_MOVE = &HF010&
becomes
#Define SC_SIZE 0xF000
#Define SC_MOVE 0xF010
You can put these #Define's at the top of the code in a PRG, but if you are using a VCX based class, I would recommend creating a header file (.H)
This file would have these #Define's in it and then that file is Included in the class. e.g.
#Define SC_SIZE 0xF000
#Define SC_MOVE 0xF010
Modify your class.
Select the "Class | Include file" menu item,
and pick the MyHeader.h file.
When you compile the class, the constants will be replaced with the defined values.
Insanity: Doing the same thing over and over and expecting different results.