I've build a small example that shows that it does pretty much what you want.  What do you want to do exactly?

TmpSum sumTab;
TmpSum sumTab2;

sumTab.Balance01 = 11;
sumTab.Key = "1";
sumTab.insert();
sumTab.Balance01 = 22;
sumTab.Key = "2";
sumTab.insert();

sumTab2.setTmpData(sumTab);

select sumTab where sumTab.Balance01 == 11;
select sumTab2 where sumTab2.Balance01 == 22;

// Cursor can point to there own location
info(strfmt("%1", sumTab.Balance01));
info(strfmt("%1", sumTab2.Balance01));

delete_from sumTab where sumTab.Balance01 == 22;
select sumTab2 where sumTab2.Balance01 == 22;

// If you delete with one cursor, the record is also deleted
// in the other cursor.
info(strfmt("%1", sumTab2.Balance01));

Steeve...


-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED] De la part de opussolution_pk
Envoyé : 17 octobre 2005 10:00
À : [email protected]
Objet : [development-axapta] multiple pointers to the same temporary table

Hi all

I need to access to a temporary table with the two different pointers.
It seems that tmpA.setTmpData(tmpB) only copy from one temporary table
to another temporary table.

Does have anyone an idea?

Thank you for answers
Best regards
Patrick









Yahoo! Groups Links












SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to