Result= NULL NewObjectID= NULL cQuery = ; [EXEC addObject] + ; [ @objectname = '] + ALLTRIM(tmpProducts.prcode) + [',] + ; [ @objecttype = 'P',] + ; [ @Result,] + ; [ @NewObjectID]But the result it still the same.
>result = '' >NewObjectID = 0 >cQuery = ; > [EXEC addObject] + ; > [ @objectname= '] + ALLTRIM(tmpProducts.prcode) + ['] + ; > [,@objecttype= 'P'] >* may be caused by Question marks in the cQuery! >nResult = SQLExec(x.GETnHandle(), cQuery) >IF nResult < 0 > AERROR(laError) > MessageBox(laError[1,2]) >ENDIF >>