Public Declare Function SendMessageString Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Public Declare Function SendMessageStruct Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
But must... Alwasy use
Option Explicit
Never leave out Byval or ByRef, never leave out Privte or Public at their levels
If you wish to use "Optional" as well yet must BYVal and ByRef as well don't use
As Any in your own project, use Variant, or Object, and to test in optional pass
stay strapped with a "x Is Nothing" and before never the same IF can IsMissing()
as to say same line type of operating with Is Nothing will break before touching
You can set defaults for the Optionals but not the Set kind, Object is any class
Then ByVal can be used on PASSING to parameters as before the now next construct
That can be pointers values by the name of the variable or VarPtr and TypeName()
Never use the same line after the "Then" statement fore container it with End If
IIf(expression, true, false), isn't effected by one line static, inside If, Else
and ElseIf unlike Else that can be on the same like, can get back to column a If
because Else doesn't have a Then nor will If with Else or ElseIf, have an End If
Yet ElseIf must have a expression and Then, thus End If formally, can have queen
the same story there, just different depend if your type after it with Else even
on your own face the compiler will always come through for you at the floor thus
tabs of start and finish with If statements should be equalateral to End Sun/Fun
Some leave End If tab to the hyke block, that's a syke clopse from JavaScript to
because you can be half native to three lines, or two, just as the function does
but that will dealign you to the facts after } it's end statements with out the;
Colon is a sane tie to two statements and/or more then one statement on one line
however those who don't use a underscore for the jam for jam and just the string
doesn't adore the hill top hustle of the novice error occurances, lines too long
|