TORONTO - Gains in technology stocks helped offset weakness in the energy sector as Canada's main stock index crept higher in late-morning trading, while U.S. stock markets moved lower.