Hi Tim (et al),

This is just weird!

If I trace it and look to see the value of the OK button it’s alway zero.

If I place this code:

PRINT SETTINGS
If (OK=1)
        ALERT("Print OK=1")
Else 
        ALERT("Cancel OK=0")
End if 

It correctly displays ALERT("Print OK=1”) although in TRACE OK=0.

So in this app the act of tracing is causing it to fail.

So I have been testing the reports and so far they seem to work. The code is 
acting like OK was properly set EXCEPT when traced.

In the new test database the OK button shows 1 in trace and in code. So 
something about this application I guess.

Not sure this will help anyone in the future. But it’s here if anyone 
experiences this unexpected TRACE behavior.

John…


> On Dec 12, 2019, at 6:47 AM, John J Foster <[email protected]> wrote:
> 
> Hey Tim (et al),
> 
> Some curious facts:
> 
> 1. Placing PRINT SETTINGS in the on load works and returns OK=1 if Print or 
> PDF selected.
> 
> 2. Once the form is loaded and a button is clicked - really any button - the 
> same PRINT SETTINGS command will be equal to 0 (zero) no matter what is 
> selected.
> 
> 3. There are no OK buttons being set in any code related to this method and 
> dialog objects.
> 
> Weird!
> 
> I persevere …
> 
> John...
> 
>> On Dec 11, 2019, at 2:28 PM, John J Foster <[email protected]> wrote:
>> 
>> Hey Tim,
>> 
>> So created a new db with only this code appears to work:
>> 
>> PRINT SETTINGS
>> If (OK=1)
>>      ALERT("Print!")
>> Else 
>>      ALERT("Cancelled!")
>> End if 
>> 
>> So there is something in our application that has caused this behavior.
>> 
>> So I’ll have to figure a way to troubleshoot.
>> 
>> I guess that’s progress!
>> 
>> Thanks Tim,
>> John…
>> 
>> 
>>> On Dec 11, 2019, at 2:03 PM, Tim Nevels <[email protected]> wrote:
>>> 
>>> On Dec 11, 2019, at 3:38 PM, John J Foster <[email protected]> wrote:
>>> 
>>>> Well I did fail to mention I ma running Windows 10 Pro on parallels 15.1.
>>>> 
>>>> But my client is also running Windows 10 Pro but on a windows only 
>>>> computer.
>>>> 
>>>> I’ll test your ideas - as always very reasonable - and let you know.
>>> 
>>> Hi John,
>>> 
>>> I’m running Windows 10 Home on Parallels 14.1.3.
>>> 
>>> Tim
>>> 
>>> *****************************************
>>> Tim Nevels
>>> Innovative Solutions
>>> 785-749-3444
>>> [email protected]
>>> *****************************************
>>> 
>> 
> 

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to