In a generic syntax this could be written as
Object.Method Parameter:=value
This is typical to VB, called "namend parameters". VFP doesn't support it, but it doesn't matter. Lookup the method, in this case Smallscroll() in the Visual Basic For Applications help and then you will see the definition of parameters:
SmallScroll(Down, Up, ToRight, ToLeft)
So Down is really the first parameter. If your makro would be
ActiveWindow.SmallScroll ToRight:=2
Then the VFP translation would be
oXL.ActiveWindow.SmallScroll(,,2)
That is you omit the first two parameters Down and Up. This should give you a more general idea on how to translate VB method calls to VFP.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.