Drain the pineapple and reserve the syrup. Combine sugar and cornstarch. Add the pineapple syrup, vinegar, soy sauce, pineapple juice and salt to the sugar and cornstarch. Cook over medium heat until sauce thickens. Add the pineapple, green pepper and onion. Cook for another 2-3 minutes or until all ingredients are combined well.