[TEST 1:] getPartListBigText(btText); recTest.FINDLAST; recTest."Big Text Length" := btText.LENGTH; //"Big Text Lengt" is 3 recTest.MODIFY; [TEST 2:] getPartListBigText(btText); //recTest.FINDLAST; //recTest."Big Text Length" := btText.LENGTH; //"Big Text Lengt" is 1015346 //recTest.MODIFY; [b]getPartListBigText(VAR btXML : BigText)[/b] CLEAR(xmlOutStream); recTest.FINDLAST; recTest."Primary Key" := recTest."Primary Key" + 1; recTest.INSERT; recTest."Data Field".CREATEOUTSTREAM(xmlOutStream); XMLPORT.EXPORT(50003,xmlOutStream); recTest."Creation Timestamp" := CURRENTDATETIME; recTest.MODIFY; recTest.CALCFIELDS("Data Field"); recTest.MODIFY; recTest."Data Field".CREATEINSTREAM(xmlInStream); btText.READ(xmlInStream); recTest."Big Text Length" := btText.LENGTH; recTest.MODIFY; btXML := btText;
Comments
I am using Navision 2009 SP1 with SQL 2005 Express -database on 32 bit environment Windows XP SP3.