what is 'syntax'

  • Thread starter Thread starter clueless
  • Start date Start date
C

clueless

if anyone can tell me what a syntax is and what it does it
would be greatly appreciated.
 
Syntax is a word to describe the required parameters for a function, ie.
the syntax for msgbox is:
MsgBox(prompt[, buttons] [, title] [, helpfile, context])

only the prompt needs to be given, the rest are used if need be.
Example- msgbox("Hello there") when shown will display a box with the words
Hello there, an OK button will be display as well, you can change it and add
buttons by changing the above code to:
msgbox("Hello there",vbYesNoCancel) that will display the box with Hello
there and then three buttons with Yes, No, Cancel.
HTH
 
Back
Top