As Patrick pointed out, the idea is to test the current language (use something like "True", which to know to have different tokens) once you run METHOD SET CODE (well actually, you should run twice to tokenise forward-referenced project methods) then keywords such as "If" will automatically reconvert when the method language flips.
--- another option is to set the %meta line in the code to inject in order to explicitly declare the method language. --- but why not use #4DCODE which is always English (If, End if) regardless of the method language and easier to maintain? ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************