Difference between revisions of "MAILCOUNT()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return the number of messages on the currently connected mail server | Function to return the number of messages on the currently connected mail server | ||
− | |||
==Syntax== | ==Syntax== | ||
MAILCOUNT([<array>]) | MAILCOUNT([<array>]) | ||
− | |||
==See Also== | ==See Also== | ||
[[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | [[CLOSEMAIL()]], [[COUNTMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | ||
− | |||
==Description== | ==Description== | ||
The MAILCOUNT() function returns the number of messages on the connected mail server. If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() (POP3 only) or MAILNODENAME() function to check if you are connected. | The MAILCOUNT() function returns the number of messages on the connected mail server. If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() (POP3 only) or MAILNODENAME() function to check if you are connected. | ||
− | + | {| class="wikitable" width="100%" | |
− | {| class="wikitable" | + | !width="15%"|Parameters||width="15%"|Required||width="15%"|Default||Description |
− | !Parameters||Required||Default||Description | + | |
|- | |- | ||
− | |<array>||No||None||The name of an array to contain the size in bytes of each mail message. No pre-declaration is required. | + | |valign="top"|<array>||valign="top"|No||valign="top"|None||The name of an array to contain the size in bytes of each mail message. No pre-declaration is required. |
|- | |- | ||
|} | |} | ||
− | |||
==Example== | ==Example== | ||
Line 32: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Mail Functions]] | [[Category:Mail Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 12:50, 1 February 2013
Contents
Purpose
Function to return the number of messages on the currently connected mail server
Syntax
MAILCOUNT([<array>])
See Also
CLOSEMAIL(), COUNTMAIL(), DELETEMAIL(), MAILATTACH(), MAILCLOSE(), MAILDELETE(), MAILERROR(), MAILHEADER(), MAILNODENAME(), MAILOPEN(), MAILREAD(), MAILSAVEAS(), MAILSEND(), MAILUSERNAME(), OPENMAIL(), READMAIL(), SENDMAIL()
Description
The MAILCOUNT() function returns the number of messages on the connected mail server. If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() (POP3 only) or MAILNODENAME() function to check if you are connected.
Parameters | Required | Default | Description |
---|---|---|---|
<array> | No | None | The name of an array to contain the size in bytes of each mail message. No pre-declaration is required. |
Example
value = mailcount(message_size) ? value 6 ? message_size[1] 365