Skip to main content

Include

Include (स्टेटमेंट)​

प्रारूप​

include "फ़ाइल_नाम"

विवरण​

कंपाइल के समय (जब चलाएँ बटन दबाया जाता है) किसी बाहरी स्रोत फ़ाइल को प्रोग्राम में लोड करता है। Include स्टेटमेंट का आर्ग्युमेंट एक स्ट्रिंग स्थिरांक होना चाहिए।

उदाहरण​

smilerandom.kbs के रूप में सेव किया गया​
include "smilesubroutine.kbs"
clg
while true
call drawsmile(300*rand, 300*rand, 50*rand+5)
end while
end
smilesubroutine.kbs के रूप में सेव किया गया​
subroutine drawsmile(x,y,r)
# x,y पर केंद्र और r त्रिज्या वाली मुस्कान बनाएँ
# हर चीज़ की स्थिति और आकार त्रिज्या के भिन्नात्मक गुणकों पर आधारित है
color black, yellow
penwidth 1
circle x, y, r
color black
circle x, y+.2*r, .5*r
color yellow
circle x, y, .5*r
color black
eye = int(.1*r)
if eye=0 then eye = 1
circle x-.35*r, y-.3*r, eye
circle x+.35*r, y-.3*r, eye
end subroutine

यह भी देखें​

EditVisible, GraphToolBarVisible, GraphVisible, Include,MainToolbarVisible, Maximize, OutputToolBarVisible, OutputVisible, RegexMinimal, Ostype, System, Version

इतिहास​

0.9.9.69इस संस्करण में नया