int MGOinsdsubscription (Subscription *sub)
The MGOinsdsubscription() function inserts a new default subscription record. Information is passed through sub. The required and optional fields are:
sub.source_code is the validation source reference code. sub.subscription_code is the subscription reference code. sub.category_code is the category reference code. sub.status_code is the validation status reference code. sub.permit is a boolean indicating whether the subscription is permitted by default. sub.deny is a boolean indicating whether the subscription is denied by default. A deny overrides a permit. You should specify one of these two. sub.subscription_data is the subscription data.
Returns the number of records inserted upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
wmango
MGOdeldsubscription(), MGOseldsubscription(), MGOselrcategory(), MGOselrsubscription(), MGOselrvalsource(), MGOselrvalstatus(), MGOupddsubscription(), MGOzero()