Printer Compatibility

Step

Optional.

Keyword specifying that the starting point coordinates are relative to the current graphics position given by theCurrentX andCurrentY properties.

Here is a sample line:

Printer.Line (x * scaleW * curZoom, y * scaleH * curZoom)-Step(w * scaleW * curZoom, h * scaleH * curZoom), &H0&, B

Is "step" supported in a different fasion?

Thanks in advance,

Chris

[792 byte] By [ChrisAkins] at [2008-3-3]
# 1

Yes, since Step is no longer a keyword in VB 2005 we replaced the keyword with a Boolean parameter called RelativeStart and RelativeEnd depending on which one of the Step keywords you are using.

In your example the equivalent syntax would then be:

Printer.Line(False, x * scalew * curzoom, y * scaleh * curzoom, True, w * scalew * curzoom, h * scaleh * curzoom, &H0&, B)

where the RelativeStart (or first parameter) would be False in your case since you were only using the Step keyword for the end of the line or RelativeEnd.

JohnHart_MSFT at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...