A small pop-up window to ask the user for a value (an InputBox)

Applies to: the thread names no version; a poster recalled a Legacy template for this and asked what exists now (posted in the Clarion 6 group).

Problem

Years earlier the poster had a Legacy template that opened a small window with a prompt and an entry field, for example "How many copies do you want to print?". He asked whether something like it exists now.

Solution

Ranked by what the poster picked up:

  1. Write a small procedure with the Window template. One poster posted his own, hacked out of other code: a function AskQuestion(QType, QPrompt, QCaption, Required, QDefault) that opens a window holding a prompt, an ENTRY, a hidden TEXT and a hidden COMBO on the same field, plus an OK button. The first parameter picks the kind of question: YESNO or NOYES go to MESSAGE, TEXT shows the text box, COMBO: lists choices, a picture such as @s30, @n9.2 or @d1 gives an entry of that type. The poster said it might not be perfect.
  2. A simple routine from a Clarion FAQ knowledge base article, which the poster called easy.
  3. The Nova templates, which a poster thought were what he remembered. They are a code template and might still work on ABC; that poster had not tried it.

Caveats

  • The first route is the code posted in the thread; the dump of it was cut short after the window opens, so expect to complete the rest yourself.
  • A link to a third-party page was offered; it asked for a password, which could be cancelled, and the site owner told the poster it had little interest in Clarion. Treat that page as unreliable.

Today (2026)

Not re-tested. A plain window procedure or MESSAGE still covers the simple cases; the Nova templates are not verified on any current build.

Sources: Rocky P. (Sep 2007, the question), Carl B., Jeff S., Mark R., Charles E., Ramon R. (Sep 2007) in softvelocity.public.clarion6.