![]() |
#3 |
Участник
|
Код: DECLARE @axapta int DECLARE @axContainer int DECLARE @axContainerIn int EXEC @hr = sp_OAMethod @axContainerIn, 'Append', null, @p1, @p2, @p3 IF @hr <> 0 BEGIN RETURN 10 END EXEC @hr = sp_OAMethod @axContainerIn, 'Append', null, @p4, @p5, @p6, @p7 IF @hr <> 0 BEGIN RETURN 10 END -------------------------------------------------------------------------------------------- -- Call static method EXEC @hr = sp_OAMethod @axapta, 'CallStaticRecordMethod', @axContainer OUT, 'my_table', 'do_smth_con', @axContainerIn IF @hr <> 0 BEGIN EXEC sp_OAGetErrorInfo @axapta, @src OUT, @desc OUT print 'Call Error: ' + @src + ', ' + @desc RETURN 10 END X++: server static container do_smth_con(container _conData) { str a; date b; real c; str d; str e; str f; date g; ; [a, b, c, d, e, f, g] = _conData; .... } Последний раз редактировалось Delfins; 13.03.2007 в 11:38. |
|