Since you have positive urine sugar, it is likely that you may have excess blood sugar also, in other words, you have gestational diabetes
, if you were not a diabetic earlier. Your doctor may have been thinking in terms of a possibility of premature induction in case of complications; dexamethasone
is given to enhance fetal lung maturity when premature induction is contemplated. It helps to reduce the incidence of respiratory distress
after delivery. Wish you safe motherhood.