Scripting

  • 1.  I have a message box that shows a list of values o

    Posted 07-27-2015 09:31
    I have a message box that shows a list of values on a button script with an OK button at bottom. Working fine until the list is too long to fit on the screen. Is there a way to add a scroll feature? Or do I need a different type of box? They just need to view the list.


  • 2.  RE: I have a message box that shows a list of values o

    Posted 07-27-2015 10:03
    I don't think you can do that with messageboxes. Can you break the message into two boxes?


  • 3.  RE: I have a message box that shows a list of values o

    Posted 07-27-2015 10:25
    Are you using MsgBox or MessageBox? The former has a limit of 1,024 whereas the latter has many times more effectively limited by the screen size.


  • 4.  RE: I have a message box that shows a list of values o

    Posted 07-27-2015 10:37
    Using MessageBox


  • 5.  RE: I have a message box that shows a list of values o

    Posted 07-27-2015 11:23
      |   view attached
    The only other output option I use is to put up a minimalist Web page (no menu or command bars) with the text which will have scroll bars. It's not elegant, but sometimes fills the need.


  • 6.  RE: I have a message box that shows a list of values o

    Posted 07-27-2015 11:27
    Or show more than one item per line (maybe 2 or 3 columns) on the messagebox.


  • 7.  RE: I have a message box that shows a list of values o

    Posted 07-28-2015 09:01
    @SteveIwanowski How would I do multiple columns?


  • 8.  RE: I have a message box that shows a list of values o

    Posted 07-28-2015 12:12
      |   view attached
    The easiest way would be to collect the entire list into an array, and then build the string that is shown by the messagebox. Something like this: Dim arrItems : str = """" : count = 0 arrItems = array(""Item1"",""Item2"",""Item3"",""Item4"",""Item5"") For Each x In arrItems str = str & x & vbTab If count Mod 2 Then str = str & vbCrLf count = count + 1 Next Msgbox str


  • 9.  RE: I have a message box that shows a list of values o

    Posted 07-29-2015 05:18
    @DanBurleson, for your web output, are you building an HTA file, or actually generating an HTML file on a server for display?


  • 10.  RE: I have a message box that shows a list of values o

    Posted 07-29-2015 10:23
    Neither, I just spawn an IE application on the client and write HTML to it with the Document.Writeln method.


  • 11.  RE: I have a message box that shows a list of values o

    Posted 07-29-2015 10:37
    Very cool! Sorry to hijack your thread, @DanaYoung