>I have been going through the new VFP documentation supplied in the July 2001 MSDN Library.
>
>While I see the new "As" clause for LOCAL, LPARAMETERS, PARAMETERS, etc. I cannot find anything that explains/describes how/what can be coded there.
I'm not really clear on what you're asking here, but I'll take a swing. The AS clause is used for pseudo strong typing. By "pseudo", I mean that it's not enforced at runtime. It is used for IntelliSense and typing in the type library (if you're creating a COM server). So, if I declare:
Local oConn As adodb.connection
then I can type oConn., and when I hit the period the PEMs for an ADO connection pop up in IntelliSense.
If I create a COM server, I can do the following:
Define Class foo As Session OlePublic
Procedure MyMethod(lsInput As String) As Integer
Return 1
EndProc
EndDefine
and the type library will show that my method takes a string as a parameter, and the method returns an integer value. However, this is not enforced. You could pass the method an integer and it wouldn't complain unless you run into a data type mismatch situation (in the example above, you wouldn't).
Mike Stewart