General information
Title:
Call a function within a function in a DLL
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only