scasystems
Programmer
How do you add items to an already existing menu via runtime. For instance I have created a mnuHistoryItem menu
at design time. When a Site is chosen I wish to :-
for i= 0 to mnuHistoryItem.ubound
if mnuHistoryItem(I).tag = site then exit for
next
if I > mnuHistoryItem.ubound then
'create item(I).caption = Site.Name
item(i).tag = Site.number
end if
Question is how do you extend the size of the menu
Tried redim preserve. Not sure how. All the books say you can do it but do not say how????
at design time. When a Site is chosen I wish to :-
for i= 0 to mnuHistoryItem.ubound
if mnuHistoryItem(I).tag = site then exit for
next
if I > mnuHistoryItem.ubound then
'create item(I).caption = Site.Name
item(i).tag = Site.number
end if
Question is how do you extend the size of the menu
Tried redim preserve. Not sure how. All the books say you can do it but do not say how????