* Release current file menu popup RELEASE POPUP _MFILE * Redefine the File popup DEFINE POPUP _MFILE MARGIN RELATIVE SHADOW COLOR SCHEME 4 * Populate the File popup with the users apps LOCAL lnCounter, lcBar, lcOnSelection, la1(2, 4) la1 = '' la1(1, 2) = "x.scx" la1(1, 3) = "Message for x " la1(1, 4) = "X" la1(2, 2) = "y.scx" la1(2, 3) = "Message for y " la1(2, 4) = "Y" FOR lnCounter = 1 TO ALEN( la1, 1 ) lcBar = ALLTRIM( STR( lnCounter ) ) DEFINE BAR &lcBar OF _MFILE ; PROMPT la1[ lnCounter, 4 ] ; MESSAGE la1[ lnCounter, 3 ] lcOnSelection = 'ON SELECTION BAR ' + lcBar + ; ' OF _mfile DO FORM ' + la1[lnCounter,2] &lcOnSelection ENDFORWhen I compile the code in VFP6, it works fine in VFP6. When I compile it in VFP7 it works fine in VFP7. Neither code runs correctly in the opposite version, however. Sometimes (like in this example) it just acts differently. Sometimes it causes Syntax errors at the macro expanded line.