DspPopupMenu 256 Character Limit

Why does Citect still have a 256 character limit in most places? Perhaps one of the most frustrating is the limit imposed in the DspPopupMenu function menu. I don't want to split my menu into a maze of sub-menus and nor do my operators... the SQLErr() function string limit is also 2nd on the list of most frustrating, as you basically don't get enough characters to see what the error is.......

Parents
  • The 256 character limit is frustrating at times, but when it blocks required functionality there is usually a work-around. For example, you can call DspPopupMenu multiple times to add as many menu items as you need. The DspPopupMenu help explains this:

    Multiple function calls with the same iMenuNumber allow you to build up entries in a particular menu. For example, the following four function calls with iMenuNumber = 1 build up 8 entries in Menu 1:

    DspPopupMenu(1, "Selection A>2, Selection B>3");
    DspPopupMenu(1, "Selection C>2, Selection D");
    DspPopupMenu(1, "Selection E>2, Selection F>3");
    DspPopupMenu(1, "Selection G>2, Selection H");

    For SQL errors, I believe you can see the full error message in the log files, although it would be better to be able to see it in code.
Reply
  • The 256 character limit is frustrating at times, but when it blocks required functionality there is usually a work-around. For example, you can call DspPopupMenu multiple times to add as many menu items as you need. The DspPopupMenu help explains this:

    Multiple function calls with the same iMenuNumber allow you to build up entries in a particular menu. For example, the following four function calls with iMenuNumber = 1 build up 8 entries in Menu 1:

    DspPopupMenu(1, "Selection A>2, Selection B>3");
    DspPopupMenu(1, "Selection C>2, Selection D");
    DspPopupMenu(1, "Selection E>2, Selection F>3");
    DspPopupMenu(1, "Selection G>2, Selection H");

    For SQL errors, I believe you can see the full error message in the log files, although it would be better to be able to see it in code.
Children
No Data