Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing variables from menus
#3
Example with PopupMenu class and CSV. It works in exe too. CSV is specified in same macro, but it also can be loaded from a macro, file, registry etc.

Macro Macro1862
Code:
Copy      Help
str itemsCSV=
;John Jones, JOHN JEREMIAH JONES
;Judy Smith, "JUDY SMITH, X"
;Paul Johnson
ICsv c=CreateCsv(1); c.FromString(itemsCSV)

MenuPopup m
int i
for i 0 c.RowCount
,m.AddItems(c.Cell(i 0) i+1)

i=m.Show
if(!i) ret
str s=c.Cell(i-1 1)
if(!s.len) s=c.Cell(i-1 0)
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)