On Jul 9, 2006, at 9:31 PM, Chris Richardson wrote:

Nancy;


   $T is $TEST, the results of the last IF test, Timeout, Timed Lock

Attempt, or the success of the opening of a device.  So if you are going to

use $TEST, you need to test it immediately after the action you are

concerned with.


One of the most common uses of $TEST in VistA is in screens (code, typically embedded in the DD) that "screens out" certain file entries so that they cannot be selected. These bits of code are just IF statements that set $T. You don't need it very often in your own code, but you sometimes see

I 1 W "Hello "
I  "there!"

The two spaces after the IF signal an implicit use of $T. The second line could have been written

I $T W "there!"

These days, it is probably more common to see "dot" notation

I 1 D
.W "Hello "
.W "there!"

Gregory Woodhouse

"Judge a man by his questions not 
his answers."   --Voltaire



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to