>>My Visual FoxPro EXE, containing an OLE public class, is now used from Visual Basic.
>>
>>The Visual FoxPro class is loaded and now controled from Visual Basic. I can access any properties of that class and set them. However, whenever I try to call a method, Visual Basic returns a syntax error.
>>
>>My object is name O. So, I am doing this to change a text control of that object o.cSeek.Value = "AB". Now, I would like to call the Seek() method of that object. I am doing this o.Seek(). Visual Basic returns a syntax error. It will be the same result for other methods. Is there a particular syntax we need to use to avoid the syntax error?
>
>I found it. Visual Basic doesn't support (). The correct syntax is o.Seek. You may add this one in the VB vs VFP.
Actually, you should be able to use any VFP method syntax when calling the method you have defined. To prevent VB from falsely returning the syntax error message when compiling, Select "Option" from the "Tools" menu and turn off the "Auto Syntax Check" option.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement