The LOCATE statement may be used to find the occurrence of an attribute, value, or subvalue within a specified dynamic array, or if not found, find the proper position at which the string should be inserted. An expression evaluating to the dynamic array to be searched. …
What is LOCATE statement in qbasic?
LOCATE allows you to position the cursor for the next piece of text output. Contrary to Cartesian coordinates which read (X,Y), the locate statement is LOCATE Y,X. In this case Y is the distance down from the top of the screen and X is the distance from the left side of the screen.
What is the syntax of Locate statement?
str.expString expression to locate. It must match the element exactly in order for the location to be returned.sequence.expSpecifies that the elements of dyn.array.exp as being in ascending or descending ASCII sequence, and sorted with either right or left justification. Possible values are:alalsar