On Oct 13, 2017, at 2:00 PM, Kirk Brooks wrote:
> Really interesting hack. I'm trying to visualize this - "So you have to
> replace all these lines of code with EXECUTE commands." Do you mean
> opening the structure in 2004 will show the names of the sub-subtable
> fields so you can then write the code using that name and run it with
> EXECUTE and not choke?
You can open the structure file in 2004 and everything works. You can also
compile no problem. The issue is when you edit a method that contains a
sub-subtable reference. As soon as you touch a line of the method with a
sub-subtable field reference, or a sub-subtable reference, and the method
editor tries to tokenize that line, it fails. So you have to be very careful.
Only touch lines that need to be edited. Don’t press command-Enter to
re-tokenize the whole method. And before you edit a line with sub-subtable
references first do a copy and paste into a text editor. I normally would copy
paste the entire method just to be safe.
So if the line was:
[Invoices]InvoiceItems’ItemDetails’SerialNumber:=[InventoryItem]SerialNumber
You do this:
EXECUTE("[Invoices]InvoiceItems’ItemDetails’SerialNumber:=[InventoryItem]SerialNumber)
This is all just a hack to get you through a conversion process.
Tim
********************************************
Tim Nevels
Innovative Solutions
785-749-3444
[email protected]
********************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************