I need some code that will process a 4D WritePro area, updating existing embedded expressions, replacing them with a different expression.
The command to get an expression, ST Get expression, works on only some expressions - data structure only like: [Table]Field. Editing a WritePro area using the WP Get text returns stylized text, and all expressions have a “-d4-ref:’expression_here’”, but these are html and 4D command number added expressions. <span style="-d4-font:'Arial';font-family:'Helvetica';font-size:11pt;color:#000000;-d4-ref:'Choose ((Current user:C182="Designer");"Company Registration";Current user:C182)'" <span style="-d4-font:'Arial';font-family:'Helvetica';font-size:12pt;color:#000000;-d4-ref:'String:C10([Class:11]Starts:12;1)'"> <span style="-d4-font:'Times New Roman Bold Italic';font-size:14pt;color:#000000;font-style:italic;font-weight:bold;-d4-ref:'QUERY:C277([Student:3];[Student:3]AccountNo:2=[Account:2]AccountNo:1)'"> <span style="-d4-font:'Times New Roman Bold Italic';font-size:14pt;color:#000000;font-style:italic;font-weight:bold;-d4-ref:'QUERY SELECTION:C341([Registration:7];[Registration:7]ClassNo:2=vnClassNo)'"> Even if I replaced the expressions using the WP Get text and updated with WP Set Text, we loose embedded pictures. So this wont work for me. David Ringsmuth ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************