VERY SPECIAL UPDATE ADDED June 8, 2003
Greetings --
A few years ago, a PowerBASIC member named Dave Navarro posted a screen display shortcut - a function he called AT. I call it AT0 because the 2-letter AT is supposedly reserved in PB-DOS.
The function changes this ...
Locate 12,10: Print "Dave"
To This ...
Print AT0(12,10);"Dave"
Adapting Dave's Method, I came up with one that employs the STRING$ statement ...
Here's an example of AT0 and QVC together..
Print AT0(11,1);QVC(22,95)
__________________________________________________________________
VERY SPECIAL UPDATE: 6-08-2003
I've learned that the QVC shortcut function has a negative impact on program performance. You're better off just using PowerBASIC's built-in STRING$ function instead.
Thanx-A-Lot, Frank -- My PB
[This message has been edited by Frank Ferrell (edited June 21, 2003).]
Greetings --
A few years ago, a PowerBASIC member named Dave Navarro posted a screen display shortcut - a function he called AT. I call it AT0 because the 2-letter AT is supposedly reserved in PB-DOS.
Code:
FUNCTION AT0 (BYVAL row AS LONG, BYVAL col AS LONG) AS STRING LOCATE row, col, 0:' cursor invisible END FUNCTION
Locate 12,10: Print "Dave"
To This ...
Print AT0(12,10);"Dave"
Adapting Dave's Method, I came up with one that employs the STRING$ statement ...
Code:
FUNCTION QVC (BYVAL Gnum AS LONG, BYVAL Gchr AS LONG) AS STRING ? String$(Gnum, Gchr); ' print a given string character (Gchr) a specified number (Gnum) of times END FUNCTION
Print AT0(11,1);QVC(22,95)
__________________________________________________________________
VERY SPECIAL UPDATE: 6-08-2003
I've learned that the QVC shortcut function has a negative impact on program performance. You're better off just using PowerBASIC's built-in STRING$ function instead.
Thanx-A-Lot, Frank -- My PB
[This message has been edited by Frank Ferrell (edited June 21, 2003).]
Comment