John,
Foxpro will look for an alias named A, find none and return an error
In fact, if it encouters one letter variables a-j followed by a dot, it will look only for an alias
Either prefix with m. or use a two (or more) letter name instead of a one letter name
? m.A.B.C
__________________________________________
>Soooooo...
>
>I'm in the middle of troubleshooting a little DLL I'm trying to develop, and it opened up a bunch of questions I'd like answered about hybrid classes.
>
>First a simple and annoying one: I have a class that uses an instance of another class. Basically, Class A has an instance of Class B which has property C. In the Debugger tool's Watch list, I can run down the tree A.B.C and see the value of property C. If I attempt to access this property in the command-line, I receive the error "Unknown member B" (yes, B, not C). If I access the type of A.B, it returns (Object), so it is a member of A. I found that I CAN access the C property, but I must first assign A.B to another variable:
>
>?A.B.C
>(error)
>B2=A.B
>?B2.C
>(returns C's value)
>
>Is there any more efficient method of accessing these sub-members? Why does IntelliSense not handle members below level-1?
>
>I have a custom class which returns a string that uses an instance of _CryptAPI._CRYPTO . The resulting DLL works just fine for VFP, VB, C#, VBS apps...etc. The problem I'm having is that when the class is used in an ASP page using Server.CreateObject("myClass"), the object appears to be instantiated without error, and when the necessary method which returns the string is called, there is also no error...but no string either. I then created a simple DLL using the same structure (a class using an instance of another class) to produce a string to see if it would operate as expected, and sure enough it worked properly in the ASP. So it looked like this sceneario should work fine.
>
>I was wondering if there might be some specific reason that a class like _CryptAPI._CRYPTO might cause error-free fouling under IIS processing.
Gregory