progress equivalent of vb inputbox?

It's an updateable message box, I think.

Normally dealt with in Progress (Windows) by a dialog box, but try this:


Code:
DEF VAR inputField AS CHARACTER FORMAT 'x(20)' NO-UNDO.

MESSAGE 'Type here:' SET inputField
    .

MESSAGE inputField 
    VIEW-AS ALERT-BOX INFO BUTTONS OK.


ps. Mike, If you have a current link to the SmartPak, I'll add it to my page.
 

freak

Member
That's kind of ugly but it works and I appreciate it. Yes the vb inputbox does the same thing, though it looks much nicer kind of like "view-as alert-box" does. I know I could do it with a window but I was hoping for a "one liner" like in vb! :)
 
I know I could do it with a window but I was hoping for a "one liner" like in vb! :)

Well, I suppose if it is something you want to use regularly you could construct your own - it shouldn't take more than a few minutes.

ie. create a little dialog (InputBox.w, say) with an image and Title.

Then Run InputBox.w(Input Title, Output EnteredString) every time you need it.
 
ps. Mike, If you have a current link to the SmartPak, I'll add it to my page.[/quote]

Thanks, er, Knut. I'm working on it. Been away from the 4GL for a time, but now I'm back! Now, where did I put the source code...
 
Top