<?xml version="1.0" encoding="windows-1250" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>CAD F&#243;rum : Uprava Lispu</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : CAD programov&#225;n&#237; : Uprava Lispu]]></description>
  <pubDate>Wed, 13 May 2026 11:59:47 +0000</pubDate>
  <lastBuildDate>Tue, 08 Jan 2008 17:16:15 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum/RSS_post_feed.asp?TID=5100</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD F&#243;rum]]></title>
   <url>https://www.cadforum.cz/forum/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum/</link>
  </image>
  <item>
   <title><![CDATA[Uprava Lispu :   Augur napsal(a):...  (SETQ...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27987&amp;title=uprava-lispu#27987</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=46">Ferdinand</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 08.led.2008 v 17:16<br /><br /><FONT color=#333333><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Původně odeslal(a) Augur" alt="Původně odeslal(a) Augur" style="vertical-align: text-bottom;" /> <strong>Augur napsal(a):</strong><br /><br />...</FONT> <DIV><FONT color=#333333>(SETQ NSTRING (GETSTRING T "\nSTRING TO REPLACE WITH: "))<BR>(if (= "") (SETQ "x") (GETSTRING T "\nSTRING TO BE REPLACED: "))) <BR>(REPSTRING OSTRING NSTRING))</td></tr></table> </FONT></DIV><DIV><FONT color=#333333>Pro tuto formu zápisu bych to spíše napsal:</FONT></DIV><DIV><FONT color=#333333></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff>;;predvolena hodnota:</FONT></DIV><DIV><FONT color=#0000ff>(setq DFT (strcat&nbsp;"&lt;ABC&gt;"))</FONT></DIV><DIV><FONT color=#0000ff></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff>(setq OSTRING (getstring "\nSTRING TO BE REPLACED: "))</FONT></DIV><DIV><FONT color=#0000ff>(setq NSTRING (getstring (strcat "\nSTRING TO REPLACE WITH: " DFT)))</FONT></DIV><DIV><FONT color=#0000ff>(if (= NSTRING nil) (setq NSTRING DFT))</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#333333><FONT color=#0000ff>;;zamena OSTRING na NSTRING: (nevim jak)</FONT></FONT></DIV><DIV><FONT color=#333333><FONT color=#0000ff>(???? ???? ????)</FONT></FONT></DIV><FONT color=#333333><FONT color=#0000ff></FONT><DIV><BR>Co to je "T" ?</DIV><DIV></FONT>&nbsp;</DIV><DIV><FONT color=#333333>Jinak je to řešeno - např. chgtext.lsp</FONT></DIV><DIV><a href="http://www.cadinfo.net/&#115;cripts/LISPlib-software.cfm?StartRow=11&areano=331" target="_blank" rel="nofollow">http://www.cadinfo.net/scripts/LISPlib-software.cfm?StartRow=11&amp;areano=331</A></DIV><DIV><a href="http://www.design-drawing.com/lisp/LSP-chgtxt.htm" target="_blank" rel="nofollow">http://www.design-drawing.com/lisp/LSP-chgtxt.htm</A></DIV><DIV><a href="http://www.cadcorner.ca/lisp.php" target="_blank" rel="nofollow">http://www.cadcorner.ca/lisp.php</A></DIV><DIV><a href="http://www.itcad.net/ChangeText.htm" target="_blank" rel="nofollow">http://www.itcad.net/ChangeText.htm</A></DIV><span style="font-size:10px"><br /><br />Upravil Ferdinand - 08.led.2008 v 17:17</span>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 17:16:15 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27987&amp;title=uprava-lispu#27987</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu : To byl jen fragment k&#243;du - definice...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27983&amp;title=uprava-lispu#27983</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9">Vladimír Michl</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 08.led.2008 v 16:50<br /><br />To byl jen fragment kódu - definice funkce (repstring) tam není.]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 16:50:12 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27983&amp;title=uprava-lispu#27983</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu :   Vladim&#237;r Michl napsal(a):(defun...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27982&amp;title=uprava-lispu#27982</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=46">Ferdinand</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 08.led.2008 v 16:30<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Původně odeslal(a) Vladimír Michl" alt="Původně odeslal(a) Vladimír Michl" style="vertical-align: text-bottom;" /> <strong>Vladimír Michl napsal(a):</strong><br /><br />(defun c:repstring () <BR><DIV>...<BR></DIV></td></tr></table> <DIV>Mně to nefunguje:</DIV><DIV><FONT color=#0000ff>Command: _appload repstring.lsp successfully loaded.</FONT></DIV><DIV><FONT color=#0000ff>Command: repstring</FONT></DIV><DIV><FONT color=#0000ff>STRING TO BE REPLACED:</FONT> ABCDE</DIV><DIV><FONT color=#0000ff>STRING TO REPLACE WITH &lt;něco&gt;:</FONT> Enter</DIV><DIV><FONT color=#0000ff>; error: no function definition: REPSTRING</FONT></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jan 2008 16:30:29 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=27982&amp;title=uprava-lispu#27982</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu : Ve sta&#345;i&#269;k&#233;U&#269;ebnici Autolispu...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24567&amp;title=uprava-lispu#24567</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=46">Ferdinand</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 03.zář.2007 v 16:47<br /><br />Ve stařičké&nbsp;<EM>Učebnici Autolispu</EM> je následující řešení:<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff>;B...implicitni hodnota<BR>;C...vyzva uzivateli (to, co bude v zavorkach tj. &lt;C&gt;)<BR>;D...typ promenne (real, int, str)<BR>(defun default (B C D / TEMP)<BR>&nbsp; (cond&nbsp;((= D "real")<BR>&nbsp; (if (= B nil)<BR>&nbsp;&nbsp;&nbsp; (setq B 1)<BR>&nbsp; )<BR>&nbsp; (prompt (strcat C " &lt;" (rtos B 2 2) "&gt; "))<BR>&nbsp; (setq TEMP (getreal))<BR>&nbsp; (if (= TEMP nil)<BR>&nbsp;&nbsp;&nbsp; B<BR>&nbsp;&nbsp;&nbsp; TEMP<BR>&nbsp; )<BR>&nbsp;)<BR>&nbsp;((= D "int")<BR>&nbsp; (if (= B nil)<BR>&nbsp;&nbsp;&nbsp; (setq B 1)<BR>&nbsp; )<BR>&nbsp; (prompt (strcat C " &lt;" (rtos B 2 0) "&gt; "))<BR>&nbsp; (setq TEMP (getint))<BR>&nbsp; (if (= TEMP nil)<BR>&nbsp;&nbsp;&nbsp; B<BR>&nbsp;&nbsp;&nbsp; TEMP<BR>&nbsp; )<BR>&nbsp;)<BR>&nbsp;((= D "str")<BR>&nbsp; (if (= B nil)<BR>&nbsp;&nbsp;&nbsp; (setq B "")<BR>&nbsp; )<BR>&nbsp; (prompt (strcat C " &lt;" B "&gt; "))<BR>&nbsp; (setq TEMP (getstring t))<BR>&nbsp; (if (= TEMP "")<BR>&nbsp;&nbsp;&nbsp; B<BR>&nbsp;&nbsp;&nbsp; TEMP<BR>&nbsp; )<BR>&nbsp;)<BR>&nbsp; )<BR>&nbsp; ;(princ)<BR>)</FONT></DIV><DIV><FONT color=#0000ff>;;<BR>;;Priklady volani implicitni hodnoty:<BR>;;<BR>;;&nbsp; (setq PROM (default BB CC DD)) ;obecny tvar - v prikazovem radku se objevi:<BR>;;&#091;retezec CC:&#093; &lt;hodnota BB&gt;<BR>;;kde format BB bude DD<BR>;;&nbsp; (setq A1 (default 10 "\nZadejte cele cislo: " "int")) ;&lt;default&gt; pro promennou A1 bude hodnota &lt;10&gt; tj. Integer<BR>;;&nbsp; (setq A2 (default A1 "\nZadejte realne cislo: " "real")) ;&lt;default&gt; pro promennou A2 bude promenna &lt;A1&gt; a to Real<BR>;;&nbsp; (setq A3 (default "doleva" "\nSmer bude: " "str")) ;&lt;default&gt; pro promennou A3 bude retezec &lt;doleva&gt; tj. String<BR>;;</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 16:47:54 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24567&amp;title=uprava-lispu#24567</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu : Dakujem, funguje. ]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24560&amp;title=uprava-lispu#24560</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=340">Augur</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 03.zář.2007 v 11:34<br /><br />Dakujem, funguje. ]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 11:34:39 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24560&amp;title=uprava-lispu#24560</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu : (defun c:repstring () (SETQ OSTRING...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24559&amp;title=uprava-lispu#24559</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9">Vladimír Michl</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 03.zář.2007 v 11:10<br /><br />(defun c:repstring () <BR>(SETQ OSTRING (GETSTRING T "\nSTRING TO BE REPLACED: ")) <BR>(SETQ NSTRING (GETSTRING T "\nSTRING TO REPLACE WITH <FONT color=#990066>&lt;něco&gt;</FONT>: ")) <DIV><strong><FONT color=#990066>(if (= NSTRING "")(setq NSTRING "něco"))<BR></FONT></strong>(REPSTRING OSTRING NSTRING) <BR>) <BR></DIV>]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 11:10:36 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24559&amp;title=uprava-lispu#24559</guid>
  </item> 
  <item>
   <title><![CDATA[Uprava Lispu : Chcel by som poziadat o radu,...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24558&amp;title=uprava-lispu#24558</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=340">Augur</a><br /><strong>Předmět:</strong> 5100<br /><strong>Zasláno:</strong> 03.zář.2007 v 10:40<br /><br />Chcel by som poziadat o radu, pri modifikacii tohoto lispu. <br />Vysledok by mal byt taky, ze pri nezadani hodnoty na prepisanie sa pouzije predvolena hodnota napr. "X"<br /><br />(defun c:repstring ()<br />(SETQ OSTRING (GETSTRING T "\nSTRING TO BE REPLACED: "))<br />(SETQ NSTRING (GETSTRING T "\nSTRING TO REPLACE WITH: "))<br />(REPSTRING OSTRING NSTRING)<br />)<br /><br />Snazil som sa to zapisat nejako takto, ale nech robim, co robim, stale to nejde.  <br /><br />(defun c:repstring ()<br />(SETQ OSTRING (GETSTRING T "\nSTRING TO BE REPLACED: "))<br />(if (= "") (SETQ "x") (GETSTRING T "\nSTRING TO BE REPLACED: ")))<br />(REPSTRING OSTRING NSTRING))]]>
   </description>
   <pubDate>Mon, 03 Sep 2007 10:40:43 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=5100&amp;PID=24558&amp;title=uprava-lispu#24558</guid>
  </item> 
 </channel>
</rss>