int MGOselsponsor (Validation **lst, Validation *val)
The MGOselsponsor() function selects sponsor records. Information is passed through val and returned through the linked list lst. The selection criteria fields are:
val.validid is the validation id. val.sponsid is the sponsor's validation id. val.source_code is the sponsor validation source reference code. You can specify either a validation id, or a sponsor id and source code or both. The following fields are set for each selected sponsor:
Returns the number of records inserted upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
rmango
MGOdelsponsor(), MGOfreevalidation(), MGOinssponsor(), MGOselrvalsource(), MGOupdsponsor(), MGOzero()