->'Add article' > -->suplier1 > -->group1 > -->ArticleId > ... > -->group2 > ... > -->suplier2 > ... > ->'remove article' >>Is this possible ?
Define popup (cPopupName) i=0 scan i=i+1 DEFINE BAR i OF (cPopupName) PROMPT (youralias.cPrompt) ON SELECTION BAR i OF (cPopupName) DO {macro with the command here} endscanSo you just need a table with bar captions, and, in your case, article names - your command would be "Do OpenArticle with 'thearticle.doc'" where you would have to store the article name into a variable and then have that variable macroexpanded between quotation marks. Keep in mind that a popup runs pretty much unaware of the rest of the world - it won't know any variables you had when you defined it, so the On Selection line must have literals, not variables in its clauses. This means the macros you use must evaluate into simple expressions without embedded variables. They may, however, include function calls, which then does give you some liberty, but the parameters to these calls, again, can not be variables.