TABLE.SEND Function
Syntax
Arguments
- tablename
The name of the table to send. If the table is in the current database, it is not necessary to specify the full drive and path.
- emailaddress
Optional. The address that the table is being sent to.
- options
Optional. A string that can include one or more of the following flags:
- Option Flag
- Meaning
- C
Compress (pack) the table before sending.
- P
Display the "Send Table" dialog box. If "P" not specified, the table is sent without any user prompting.
- D
Include the data dictionary files.
- X
Include index file.
- use_A5_email_client
Optional. Default = .F. If, for example, Use_A5_Email_Client is .F., and the current MAPI email client is Microsoft Outlook, Alpha Anywhere will open Outlook. Similarly, if the email client is Eudora, or Netscape Mail, Alpha Anywhere will open the appropriate email program. .T. = Use Alpha Anywhere internal email client. .F. = Use MAPI email client.
- store_in_outbox
Optional. .T. = If Alpha Anywhere email client is used, a copy of the message is stored in the Alpha Anywhere email outbox (typically A_EMAIL.DBF in the Alpha Anywhere program folder). .F. = Do not store copy.
- show_client
Optional. Default = .T. .T. = If Alpha Anywhere email client is used, display the client before sending the message. .F. = If Alpha Anywhere email client is used and Email_Address is provided, do not display the client.
Description
Zip and send a table. Options "d" - include Dictionary, "x" - include Indexes, "p" - display prompt dialog, "c" - compress before sending.
Discussion
The TABLE.SEND() method sends a table via the current MAPI email client, or the built-in Alpha Anywhere email client. Note : To send a set, use the <SET>.SEND() method.
Example
This script will send a table to an email address. The table will be packed before it is sent. The dictionary and the indexes will be included. Because the table is in the database, the drive/path need not be specified.
to = "[email protected]" table.Send("prices",to,"C")
This script sends a table but first displays the dialog requesting user input.
table.Send("c:\mydata\customers","[email protected]","P")
See Also