API Documentation > CorelDRAW > 2025-v26 > Node > IVGNode
Node.Next method
Gets the node following this one
Syntax:
Function Next() As Node
Remarks:
The Next method returns the next node in a curve, relative to a given node.
Examples:
The following VBA example changes the fifth node to a smooth node if the fourth node of the curve is symmetrical and the fifth node is a cusp node.
Sub Test()
Dim s As Shape
Dim n As Node
Set s = ActiveShape
If s.Type = cdrCurveShape Then
  Set n = s.Curve.Nodes(4)
  If n.Type = cdrSymmetricalNode And n.Next.Type = cdrCuspNode Then

 n.Next.Type = cdrSmoothNode
  End If
End If 
End Sub