Note the following differences:

hDS = DSInstance('CUSTOMERS_NWIND', hXO)
flag = DSMethod(hDS, DS_EXECUTE$)
rv = DSGetProperty(hDS, DS_RECORD$, results)
DSMethod(hDS, DS_DESTROY$)
convert @rm to @fm in results