>Has anyone tried to implement anything in ADSI with VFP?
>
>I used to Visual Basic where you can define your variable types.
>
>How can this be done in Visual Foxpro?
>
>for example, if I have this piece of code in Visual Basic, what would it look like in VFP?
>
>dim o as IADsOpenDSObject
>
You don't need to assign a fixed data type in VFP - when you issue the CREATEOBJ() for the ADSI component, VFP will configure an object variable, which will expose the public properties and methods of the object.
Rick Strahl has a good introductory whitepaper on using ADSI and VFP on
www.west-wind.com