The purpose of SetCursorPosition () is to set the text on it's position. It has an X and Y position value which is the X is the horizontal position and the Y is the vertical position of the text. Always remember that it's position accept only an integer or single numeric value.
Here is the code of SetCursorPosition()
Module Module1
Sub Main()
Console.SetCursorPosition(5, 3)
Console.WriteLine("Programming!")
Console.ReadLine()
End Sub
End Module
Note:
The Value 3 on the SetCursorPosition is the Vertical Position of the text and the value 5 is the Horizontal Position of the text.
The image below is the output of SetCursorPosition()
No comments:
Post a Comment