<html><head><title>Runtime</title></head><body bgcolor="#FFFFFF" link="#207BC3" vlink="#003B83" alink="#003B83"><font face="Arial" size="2"><p align="center"><b><font size="5">Runtime</font></b></p><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#207BC3">Runtime</font></b> Variable<b><font color="#207BC3">Runtime</font></b> #Constant<b><font color="#207BC3">Runtime</font></b> Procedure() declaration<b><font color="#207BC3">Runtime</font></b> Enumeration declaration</font></pre></blockquote><b>Description</b><br><blockquote>For advanced programmers. <b><font color="#207BC3">Runtime</font></b> is used to create runtime accessible list of programming objects like variables,constants and procedures. Once compiled a program doesn't have variable, constant or procedure label anymore as everything isconverted into binary code. <b><font color="#207BC3">Runtime</font></b> enforces the compiler to add an extra reference for a specific object tohave it available trough the <a href="../runtime/index.html">Runtime</a> library. The objects can be manipulated using their stringreference, even when the program is compiled.<br><br>Another use would be adding a small realtime scripting language to the program, allowing easy modification of exposedvariables, using runtime constants values. While it could be done manually by building a map of objects, the <b><font color="#207BC3">Runtime</font></b>keyword allows to do it in a standard and unified way.</blockquote><p><b>Example:</b> Procedure</p><blockquote><pre><font face="Courier New, Courier, mono"size="2"> <b><font color="#207BC3">Runtime</font></b> <b><font color="#207BC3">Procedure</font></b> <font color="#207BC3">OnEvent</font>()<b><font color="#207BC3">Debug</font></b> "OnEvent"<b><font color="#207BC3">EndProcedure</font></b><b><font color="#207BC3">Debug</font></b> <font color="#207BC3">GetRuntimeInteger</font>("OnEvent()") <font color="#207BC3">; Will display the procedure address</font></font></pre></blockquote><p><b>Example:</b> Enumeration</p><blockquote><pre><font face="Courier New, Courier, mono"size="2"> <b><font color="#207BC3">Runtime</font></b> <b><font color="#207BC3">Enumeration</font></b><font color="#924B72">#Constant1</font> = 10<font color="#924B72">#Constant2</font><font color="#924B72">#Constant3</font><b><font color="#207BC3">EndEnumeration</font></b><b><font color="#207BC3">Debug</font></b> <font color="#207BC3">GetRuntimeInteger</font>("#Constant1")<b><font color="#207BC3">Debug</font></b> <font color="#207BC3">GetRuntimeInteger</font>("#Constant2")<b><font color="#207BC3">Debug</font></b> <font color="#207BC3">GetRuntimeInteger</font>("#Constant3")</font></pre></blockquote><p><b>Example:</b> Variable</p><blockquote><pre><font face="Courier New, Courier, mono"size="2"> <b><font color="#207BC3">Define</font></b> a = 20<b><font color="#207BC3">Runtime</font></b> a<b><font color="#207BC3">Debug</font></b> <font color="#207BC3">GetRuntimeInteger</font>("a")<font color="#207BC3"> SetRuntimeInteger</font>("a", 30)<b><font color="#207BC3">Debug</font></b> a <font color="#207BC3">; the variable has been modified</font></font></pre></body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。