>>>If you check out the cApplicationCOM subclass in cApp.vcx, in SetCOMEnvironment() we have SET REPROCESS TO 2 SECONDS.
>>
>> Hmm...that takes care of the rest of the app, but NewID() would still be set to AUTOMATIC. When it's called, it saves the current REPROCESS setting, sets it to Auto, does what it needs to do to get the next ID, then resets it.
>
>Yeah but you know what, that's if we're talking about using a COM version of goApp. I'm interested here in regards to rolling out a COM kBizObj... oh wait the same SET REPROCESS TO 2 is in kbizobj.setcomenvironment() too.
>
>Playing around with this (note - I'm a COM newbie) I cant get it to bite me from within VFP but I'm still a little concerned. I cant find anywhere in the framework classes that make use of SYS(2335, n) though. Seems to me we would still need that in these .SetCOMEnvironment() wouldnt we?
OIC. Yeah, seems like it should be there. Of course, assuming you've designed your bizobj correctly, you'd never need the SYS entry ;-) But in the real world, I'd want it set. Actually, you'd still need to worry about the NewID() SET REPROCESS setting if your COM object accessed a local VFP table (that used NewID() to generate the primary key) - I know most of my objects do.