I thought the declare section was at the top of the file. This is the first three lines of code in the file (after a couple of comments):
Everywhere else I've seen declare statements, they have been the first lines in the file. What is the syntax to declare it public? I have several examples of declares from this program and other VB programs in the suite of programs we're working on. I don't see a public keyword in any of the declare statements.Code:Declare Function SetWindowWord Lib "User" (ByVal hwnd As Integer, ByVal Index As Integer, ByVal wNewWord As Integer) As Integer Const GWW_HWNDPARENT = (-8) Dim OriginalParenthWnd As Integer




Reply With Quote