TextCol
TextCol (फ़ंक्शन)
प्रारूप
textcol
textcol ( )
विवरण
वह स्तंभ लौटाता है जिसमें अगला Print लिखेगा, शून्य से गिनकर।
यह बताता है कि प्रोग्राम कहाँ छापने वाला है, यह नहीं कि आपने माउस से विंडो में कहाँ क्लिक किया हो। इसीलिए
locate textcol, textrow
ऐसा स्टेटमेंट है जो कुछ नहीं करता: यह कर्सर को ठीक वहीं रखता है जहाँ वह पहले से था।
TextRow के साथ पढ़ने पर प्रोग्राम एक जगह नोट कर सकता है, कहीं और छाप सकता है, और फिर वहीं लौट सकता है:
c = textcol
r = textrow
locate 0, 20
print "a message at the foot of the window";
locate c, r
note
उदाहरण
textfont "Courier New", 12
cls
locate 12, 3
print "some text";
print
print "that print started at column " + textcol + " ... "
locate 12, 3
print "and textcol now reads " + textcol + " after locate"
यह भी देखें
Locate, Print, TextBackground, TextChar, TextColor, TextFont, TextRow, TextScreen
इतिहास
| 2.3 | इस संस्करण में नया |