Subject Re: use of ? in Command Window
From Mervyn Bick <invalid@invalid.invalid>
Date Wed, 22 Feb 2017 08:06:28 +0200
Newsgroups dbase.getting-started

On 2017-02-21 3:28 PM, Mervyn Bick wrote:
> On 2017-02-21 9:27 AM, Mustansir Ghor wrote:
>> Hello Everyone
>>
>> Can we test and check the parameter value of an object inside an open
>> MDI form in command window with ?
>>
>>
>> Mustansir
>>
>
> Yes but it takes a bit of effort.
>
> In the Command panel enter
>
> f = findinstance('myformForm')
> ? f.top
> ? f.entryfield1.value
>
> Instead of myformForm you need to use the actual class name of the form.
>  This will work for MDI and SDI forms.

I may have misunderstood what you mean.  If you want to place a ? (print
command) in your code to help you debug a program by showing values in
the Results panel then the answer is yes.

To prevent the results panel from getting too cluttered it can help if
you add a CLEAR command either in the form's onOpen event handler or
above the start of the form's code.

CLEAR
** END HEADER -- do not remove this line
//rest of code


Mervyn.