Is there a way to check an object type.

for example

looping through all the controls on and form, and checking if a
control is an 'instance of' a textfield.

Bob Welke

Re: Check for instance of by Dan

Dan
Wed Jun 29 15:38:13 CDT 2005

There's no "InstanceOf" in VFP, but every control has a Class and Baseclass
property.

Dan

Lightning wrote:
> Is there a way to check an object type.
>
> for example
>
> looping through all the controls on and form, and checking if a
> control is an 'instance of' a textfield.
>
> Bob Welke



Re: Check for instance of by Leemi

Leemi
Wed Jun 29 16:07:43 CDT 2005

Hi Bob:

Dan is correct. Here is an article with some code that may help:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;130713

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>There's no "InstanceOf" in VFP, but every control has a Class and Baseclass
>property.

>Dan

>Lightning wrote:
> Is there a way to check an object type.
>
> for example
>
> looping through all the controls on and form, and checking if a
> control is an 'instance of' a textfield.
>
> Bob Welke