what is 'syntax'

C

clueless

if anyone can tell me what a syntax is and what it does it
would be greatly appreciated.
 
C

Cliff Myers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top