Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call a function within a function in a DLL
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Call a function within a function in a DLL
Miscellaneous
Thread ID:
00881388
Message ID:
00881388
Views:
48
Is it possible to call a function within a function in a DLL?
Example:
DEFINE CLASS myClass AS Custom OLEPUBLIC
FUNCTION calcVolume
PARAMETERS mySide1,mySide2,myHeigh
lnArea=calcArea(mySide1,mySide2)
lnVolume=lnArea*myHeigh
RETURN lnVolume
ENDFUNC

FUNCTION calcArea
PARAMETERS lnSide1,lnSide2
myArea=lnSide1*lnSide2
RETURN myArea
ENDFUNC
ENDDEFINE

After
oVolume=CREATEOBJECT("getvolume.myClass")
and
? oVolume.calcVolume(2,2,3)
in command window I get the following error message

The error message is: OLE IDispatch code 1 from getvolume.myClass
getvolume.myClass: .calcvolume
c:\foxprg\main.prg Error in line 5 File
'calcarea.prg' does not exist. 1..
Next
Reply
Map
View

Click here to load this message in the networking platform