Important alert: (current site time 7/15/2013 4:10:19 AM EDT)
 

article

Option Explicit

Email
Submitted on: 6/10/2013 5:20:38 PM
By: Nick Forystek  
Level: Advanced
User Rating: By 1 Users
Compatibility: VB 6.0
Views: 2184
author picture
(About the author)
 
     Optional

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
  1. You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
				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


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Advanced category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/15/2013 4:20:41 AMChippy088

I really don't see the point of posting this with no description and with a badly translated text. Please use google translate.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.