<?xml version="1.0" encoding="iso-8859-9" ?>
<?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>Clomosy | Forum : nil kontrolü</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : nil kontrolü]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 09:34:24 +0000</pubDate>
  <lastBuildDate>Wed, 19 Nov 2025 17:01:02 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1234</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[nil kontrolü : function DeclineRoleNeeds_Safe:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2730#2730</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 17:01<br /><br /><div>function DeclineRoleNeeds_Safe: Boolean</div><div>var</div><div>&nbsp; LArr: TCLJSONArray;</div><div>&nbsp; itemsJson: String;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Trim(Role) == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (not IsValidRole(Role))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('&#65039; Geçersiz role: ' + Role);</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Role == 'Chef')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsChef;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; itemsJson = Clomosy.CLParseJSON(JsonResponse, 'items');</div><div>&nbsp; &nbsp; &nbsp; if (itemsJson &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.CreateFromJSON(itemsJson);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CloseValuePnlVD(LArr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (LArr &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr = nil;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; else if (Role == 'Waiter')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsWaiter;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Role == 'Cashier')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsCashier;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (vScroll &lt;&gt; nil) { vScroll.Margins.Bottom = (MainForm.clHeight * 0.2979); }</div><div>&nbsp; &nbsp; &nbsp; if (noteMemo &lt;&gt; nil) { noteMemo.Visible = False; }</div><div>&nbsp; &nbsp; &nbsp; if (CompleteBtn &lt;&gt; nil) { CompleteBtn.Margins.Top = (MainForm.clHeight * 0.3814); }</div><div>&nbsp; &nbsp; &nbsp; if (StateAndDateTimePnl &lt;&gt; nil) { StateAndDateTimePnl.Margins.Top = (MainForm.clHeight * 0.5721); }</div><div>&nbsp; &nbsp; &nbsp; if (AmountPnl &lt;&gt; nil) { AmountPnl.Margins.Top = (MainForm.clHeight * 0.1907); }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Role == 'Boss')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsBoss;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage(' DeclineRoleNeeds_Safe hatası: ' + LastExceptionClassName + ' - ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}&nbsp;<br>Trimle kontrol yapmaya çalıştım Güney sende inceler misin</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 17:01:02 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2730#2730</guid>
  </item> 
  <item>
   <title><![CDATA[nil kontrolü : https://www.docs.clomosy.com/T...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2729#2729</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 16:58<br /><br /><a href="https://www.docs.clomosy.com/Trim" target="_blank" rel="nofollow">https://www.docs.clomosy.com/Trim</a><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 16:58:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2729#2729</guid>
  </item> 
  <item>
   <title><![CDATA[nil kontrolü : function DeclineRoleNeeds: Booleanvar...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2728#2728</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 16:49<br /><br /><div>function DeclineRoleNeeds: Boolean</div><div>var</div><div>&nbsp; LArr: TCLJSONArray;</div><div>&nbsp; itemsJson: String;</div><div>&nbsp; RoleTrimmed: String;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; RoleTrimmed = Trim(Role);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (RoleTrimmed == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Role == 'Chef')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsChef;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; itemsJson = Clomosy.CLParseJSON(JsonResponse, 'items');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (itemsJson &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.CreateFromJSON(itemsJson);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CloseValuePnlVD(LArr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (LArr &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LArr = nil;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Result = True;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Role == 'Waiter')&nbsp;&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsWaiter;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Role == 'Cashier')&nbsp;&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsCashier;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (vScroll &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; vScroll.Margins.Bottom = (MainForm.clHeight * 0.2979);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (noteMemo &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; noteMemo.Visible = False;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (CompleteBtn &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CompleteBtn.Margins.Top = (MainForm.clHeight * 0.3814);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (StateAndDateTimePnl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; StateAndDateTimePnl.Margins.Top = (MainForm.clHeight * 0.5721);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (AmountPnl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; AmountPnl.Margins.Top = (MainForm.clHeight * 0.1907);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (Role == 'Boss')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsBoss;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('&#65039; Geçersiz role: ' + Role);</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage(' DeclineRoleNeeds hatası: ' + LastExceptionClassName + ' - ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 16:49:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2728#2728</guid>
  </item> 
  <item>
   <title><![CDATA[nil kontrolü : function DeclineRoleNeeds:Boolean...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2727#2727</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 16:15<br /><br /><div>function DeclineRoleNeeds:Boolean</div><div>&nbsp; var&nbsp;</div><div>&nbsp; LArr : TCLJSONArray;</div><div>&nbsp; itemsJson : String;</div><div>&nbsp; {</div><div>&nbsp; //ShowMessage('Role: '+Role);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; if( role == ''){</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; //ShowMessage('Role True: '+Role);</div><div>&nbsp; &nbsp; if (Role == 'Chef')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsChef;</div><div>&nbsp; &nbsp; &nbsp; itemsJson = Clomosy.CLParseJSON(JsonResponse, 'items');</div><div>&nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.CreateFromJSON(itemsJson);</div><div>&nbsp; &nbsp; &nbsp; CloseValuePnlVD(LArr); // ValuePnl.Visible = false; // Bütün + - butonlarını görünmez yapar.&nbsp;</div><div>&nbsp; &nbsp; &nbsp; LArr.free;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; &nbsp; // Miktar büyümeli ve pozisyon ayarlanmalı</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if( role=='Waiter')</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsWaiter;</div><div>&nbsp; &nbsp; else if (role =='Cashier')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsCashier;</div><div>&nbsp; &nbsp; &nbsp; vScroll.Margins.bottom = (MainForm.clHeight * 0.2979); // 250 / 839 &#8776; 0.2979&nbsp; &nbsp;//Cashier</div><div>&nbsp; &nbsp; &nbsp; noteMemo.Visible=False;&nbsp; //cashier</div><div>&nbsp; &nbsp; &nbsp; CompleteBtn.Margins.top = (MainForm.clHeight * 0.3814); // 320 / 839 &#8776; 0.3814&nbsp; &nbsp; //Cashier</div><div>&nbsp; &nbsp; &nbsp; StateAndDateTimePnl.Margins.top = (MainForm.clHeight * 0.5721); // 480 / 839 &#8776; 0.5721&nbsp; &nbsp; //Cashier</div><div>&nbsp; &nbsp; &nbsp; AmountPnl.Margins.top = (MainForm.clHeight * 0.1907); // 160 / 839 &#8776; 0.1907//Cashier</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (role == 'Boss')</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsBoss;</div><div>&nbsp; &nbsp; else {</div><div>&nbsp; &nbsp; ShowMessage('Role is invalid');</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; //}</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('DeclineRoleNeeds Error, Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br><br>bunu yapıyorum fakat invalid typecast hatası alıyorum type kontrolü nasıl yapabilirim.</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 16:15:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2727#2727</guid>
  </item> 
  <item>
   <title><![CDATA[nil kontrolü : String i&#231;in nil kontrol&#252; yapam&#305;yoruz...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2726#2726</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 15:34<br /><br />String için nil kontrolü yapamıyoruz diye biliyorum Güney,&nbsp;<br>bunun için boş string kontrolünü kullansak,&nbsp;<br><div>if (Role == '')&nbsp;&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' Role boş!');</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 15:34:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2726#2726</guid>
  </item> 
  <item>
   <title><![CDATA[nil kontrolü : function DeclineRoleNeeds:Boolean...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2725#2725</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1234<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 15:23<br /><br /><div>function DeclineRoleNeeds:Boolean</div><div>&nbsp; var&nbsp;</div><div>&nbsp; LArr : TCLJSONArray;</div><div>&nbsp; itemsJson : String;</div><div>&nbsp; {</div><div>&nbsp; //ShowMessage('Role: '+Role);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; if( Role &lt;&gt; nil){</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Role True: '+Role);</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; if (Role == 'Chef')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsChef;</div><div>&nbsp; &nbsp; &nbsp; itemsJson = Clomosy.CLParseJSON(JsonResponse, 'items');</div><div>&nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; &nbsp; LArr = TCLJSONArray.CreateFromJSON(itemsJson);</div><div>&nbsp; &nbsp; &nbsp; CloseValuePnlVD(LArr); // ValuePnl.Visible = false; // Bütün + - butonlarını görünmez yapar.&nbsp;</div><div>&nbsp; &nbsp; &nbsp; LArr.free;</div><div>&nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; &nbsp; // Miktar büyümeli ve pozisyon ayarlanmalı</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if( role=='Waiter')</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsWaiter;</div><div>&nbsp; &nbsp; else if (role =='Cashier')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsCashier;</div><div>&nbsp; &nbsp; &nbsp; vScroll.Margins.bottom = (MainForm.clHeight * 0.2979); // 250 / 839 &#8776; 0.2979&nbsp; &nbsp;//Cashier</div><div>&nbsp; &nbsp; &nbsp; noteMemo.Visible=False;&nbsp; //cashier</div><div>&nbsp; &nbsp; &nbsp; CompleteBtn.Margins.top = (MainForm.clHeight * 0.3814); // 320 / 839 &#8776; 0.3814&nbsp; &nbsp; //Cashier</div><div>&nbsp; &nbsp; &nbsp; StateAndDateTimePnl.Margins.top = (MainForm.clHeight * 0.5721); // 480 / 839 &#8776; 0.5721&nbsp; &nbsp; //Cashier</div><div>&nbsp; &nbsp; &nbsp; AmountPnl.Margins.top = (MainForm.clHeight * 0.1907); // 160 / 839 &#8776; 0.1907//Cashier</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (role == 'Boss')</div><div>&nbsp; &nbsp; &nbsp; AssignRoleAsBoss;</div><div>&nbsp; &nbsp; else {</div><div>&nbsp; &nbsp; ShowMessage('Role is invalid');</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; //}</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('DeclineRoleNeeds Error, Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}<br><br>role string bir değişken ve ben nil kontrolü yapmak istiyorum ama Invalid typecast hatası alıyorum&nbsp;<br><br><div>&nbsp;while (not hasAffected) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hasAffected = uWaiterAndChefDetails.DeclineRoleNeeds;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }<br><br>bu şekilde kontrol ediyorum. Timer atamaktansa&nbsp;</div></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 15:23:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1234&amp;PID=2725#2725</guid>
  </item> 
 </channel>
</rss>