Thanks for the idea Doug, but no, VFP isn't case sensitive. I will go back though and make sure the case of my coding matches what you just provided, just to be sure.
Thanks. Chip -----Original Message----- From: Doug Lee [mailto:[email protected]] Sent: Saturday, September 07, 2013 6:58 PM To: [email protected] Subject: Re: low-level type of question Could VFP be case sensitive when searching for methods? Pay attention to the case of method and property names below and duplicate them in your code to test this theory. This is my dump of the Scripting.Dictionary object's capabilities: Output from CreateObject scripting.dictionary: dispinterface IDictionary Member count 10 sub Add(pointer to Variant Key, pointer to Variant Item) Add a new key and item to the dictionary. Read/WriteProperty CompareMode as CompareMethod ReadProperty Count as I4 function Exists(pointer to Variant Key) as Bool Determine if a given key is in the dictionary. Read/Write/SetProperty Item(pointer to Variant Key) as Variant Set or get the item for a given key function Items as Variant WriteProperty Key(pointer to Variant Key) as pointer to Variant Change a key to a different key. function Keys as Variant sub Remove(pointer to Variant Key) Remove a given key from the dictionary. sub RemoveAll enum CompareMethod Member count 3 const Read/WriteProperty BinaryCompare = 0 as Int const Read/WriteProperty DatabaseCompare = 2 as Int const Read/WriteProperty TextCompare = 1 as Int On Sat, Sep 07, 2013 at 05:40:59PM -0400, Chip Orange wrote: Hi all, For those of you who understand the really low-level way in which things work, I wonder if you could guess at a problem I'm having (I'm just curious as to why, not that I expect anyone to solve it). At work I sometimes program in visual foxpro; an interpreted macro language, much like VBScript. I frequently use activeX objects in these programs. Recently, because I've learned about the scripting object scripting.dictionary from my work with Window-eyes, I tried to use this object in VFP programs. While it executes the CreateObject() just fine, whenever I try to use any of the methods or properties of the scripting.dictionary object I get an error from VFP that the property or method can't be found. Just wondering if there are different low-level standards for interfacing with COM objects, and does the scripting.dictionary object require a specific one (which VFP might not support)? Thanks for any clues here. Chip -- Doug Lee, Senior Accessibility Programmer SSB BART Group - Accessibility-on-Demand mailto:[email protected] http://www.ssbbartgroup.com "While they were saying among themselves it cannot be done, it was done." --Helen Keller
