How to use adParamOutput to fetch records in MSHFlexgrid?

One more addition is i want to use adcmdtext not a adCmdStoredProc.

Thanks.