George,
PMFJI, but I think VFP is treating letters from A-J as a workareas. Try the following:
j=CREATE("excel.application")
j.application.quit() && error unrecognizable command
j=.NULL.
k=CREATE("excel.application")
k.application.quit() && works
SELECT j
?SELECT() && returns 10
In general, it's probably better to avoid 1 character variables. BTW, I just found another interesting one while testing above. The following causes VFP to quit:
m=CREATE("excel.application")
m.application.quit() && quits VFP on my system (VFP6 SP3)
<
SET SHAMELESSSELFPROMOTION ON
Ed and I are writing a series of articles on the WSH for the VFUG (www.vfug.org) newsletter. The first article of five was in the Sept. issue. You might want to take a look. Since we're about to wrap up the latest installment and it's on the Scripting.FileSystemObject, this behavior might need to be mentioned. That is if Ed can figure out why this occurs.< g >
SET SHAMELESSSELFPROMOTION OFF>>
Daniel