Xbasic

usps_delivery_status Function

Syntax

C usps_delivery_status(C confirmation_number )

Arguments

Status

The status of a shipment sent through the United States Postal Service (USPS).

confirmation_number

The tracking number of a shipment sent through the United States Postal Service (USPS).

Description

Contacts the USPS web site and looks up the status of the specified Delivery Confirmation number

Discussion

The USPS_Delivery_Status() function contacts the USPS web site and looks up the status of a shipment sent through the United States Postal Service (USPS). It then returns the status of the shipment. Note : Use of this function requires an active Internet connection.

Example

? usps_delivery_status("01038454000555749770") 
= "Delivered" 
? usps_delivery_status("12345678900000000") 
= "There is no record of this item." 
? usps_delivery_status("123456789") 
= "Delivery status information is not available for your item via this web site."