Announcements
No record found.
MyTable MyTable; SourceTable sourceTable; RecordInsertList myList; myList = new RecordInsertList(tableNum(MyTable)); while select sourceTable where ... { MyTable.clear(); MyTable.Field1 = sourceTable.Value1; MyTable.Field2 = sourceTable.Value2; If (sourceTable.A=sourceTable.B) { MyTable.Field3 = sourceTable.Value3; } Select firstonly InvoiceType; If (InvoiceType) { MyTable.Field4 = '0'; } MyTable.Field5 = sourceTable.Value5; myList.add(MyTable); } myList.insertDatabase();
SourcetableC tableC; str text; while select crosscompany tableC order by tableC.InvoiceNumber asc where tableC.Field4 = '' { text += strFmt('%1/',TableC.text); } text = subStr(subStr(text, 1, strLen(text) -1), 1, 155); MyTable myTable; myTable.Text = text; myTable.insert();
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 617
André Arnaud de Cal... 461 Super User 2026 Season 1
Syed Haris Shah 298 Super User 2026 Season 1