Neil
> If it works for preemptive then it should work in all cases. Two cases means
> double maintenance, and double testing
Currently, I have a lot of places that get cached values out of IP variables
that I load on startup. I want my cooperative process to be able to continue
to take advantage of that speed.
However, my Preemptive processes, instead, would have to query and load every
time.
My example was very simplistic: so think this:
IF($IsPreemptive)
Query([person];[Person]id=$PersonID)
$TheName:=[Person]Name
ELSE
$Find_i:=find in array(<>aPerson_ID;$PersonID)
$TheName:=<>aPerson_Name{$Find_i}
END IF
This way, I don’t have to kill the speed of my Cooperative processes to benefit
my Preemptive processes.
Tony
On 11/1/16, 7:31 PM, "4D_Tech on behalf of Neil Dennis"
<[email protected] on behalf of [email protected]> wrote:
> If($IsPreemptive)
> $GetSomeValue:=vMyValue
> ELSE
> $GetSomeValue:=<>MyIpVar
> END IF
So if you have to visit the code to make it work both ways why not just
simply use
$GetSomeValue:=vMyValue
If it works for preemptive then it should work in all cases. Two cases
means double maintenance, and double testing… I’m missing the advantage of the
extra code.
Neil
--
Neil Dennis
4D Developer since 1990
GreaText - Designing Software for the Way You Work
716 East 1850 N
North Ogden, UT 84414
mailto:[email protected]
http://www.greatext.com/
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************