Microsoft KB Archive/190547

= PRB: ReadMethod Only Returns Method Text From Visual Class =

Article ID: 190547

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q190547



SYMPTOMS
The ReadMethod of an object can be used to return the text of a given method. The ReadMethod is only supported when the class is stored in a visual class library (VCX). Classes that are defined in code do not support the ReadMethod. This also holds true for the following methods:

ReadExpression

WriteMethod

WriteExpression



STATUS
This behavior is by design.



Steps to Reproduce Behavior
Run the following code: ox = CreateObject("myclass") ?ox.ReadMethod('mymethod')

DEFINE Class myclass As Custom PROCEDURE mymethod WAIT WINDOW 'hello' ENDPROC ENDDEFINE The ReadMethod does not return anything.

Additional query words: kbOOP kbVFp500a kbVFp500 kbVFp600

Keywords: kbprb KB190547

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.