<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>lekkimworld.com - Anyone who have used the Deftype statement in LotusScript?</title>
    <link>http://lekkimworld.com/2007/03/22/anyone_who_have_used_the_deftype_statement_in_lotusscript.html</link>
    <description>While looking for something completely else in the Domino Designer 7 Help I stumbled over the Deftype keyword. I find it hard to find any usage for it but then again I always code with Options Explicit/Declare and type all my variables but still... ...</description>
    <language>en</language>
    <copyright>Mikkel Flindt Heisterberg</copyright>
    <pubDate>Fri, 23 Mar 2007 12:58:25 GMT</pubDate>
    <managingEditor>Mikkel Flindt Heisterberg</managingEditor>
    <dc:date>2007-03-23T12:58:25Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Mikkel Flindt Heisterberg</dc:rights>
    <image>
      <title>lekkimworld.com</title>
      <url>http://lekkimworld.com/</url>
    </image>
    <item>
      <title>Re: Anyone who have used the Deftype statement in LotusScript?</title>
      <link>http://lekkimworld.com/2007/03/22/anyone_who_have_used_the_deftype_statement_in_lotusscript.html#comment1174654705881</link>
      <content:encoded>I have run across code where in the Options section there was the following:


Defcur c
Defdbl d
Defint i
Deflng l
Defsng g
Defstr s
Defvar v

Then, the coder would declare variables like this...

Dim cEarnedAnnPremAccm
Dim cDedAmtPerAcc
Dim cDedAmtAgg
Dim lPolicyLink
Dim lRecNotWritten
Dim lPosition
Dim iLoopCntr
Dim iTotalNumOfPolicies
Dim iThreadsafe
Dim vStatus 

So three currency variables, three longs, three integers, and a variant.

Initially it was hard to remember what 'identifier' went with what type, but after a day of reading his code, it wasn't that big of deal.  Don't know what he was trying to gain from doing that way...maybe just personal consistency (and he was a Declare Explicit type of coder)</content:encoded>
      <pubDate>Fri, 23 Mar 2007 12:58:25 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-03-22:default/c/1174601957333/1174654705881</guid>
      <dc:date>2007-03-23T12:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone who have used the Deftype statement in LotusScript?</title>
      <link>http://lekkimworld.com/2007/03/22/anyone_who_have_used_the_deftype_statement_in_lotusscript.html#comment1174602858370</link>
      <content:encoded>I have not used it, but I know people sometimes like to use the first letter to signify type, as in &lt;b&gt;fCost&lt;/b&gt; is a float and &lt;b&gt;iCount&lt;/b&gt; is an integer, but &lt;b&gt;dCost&lt;/b&gt; is a double and &lt;b&gt;lCount&lt;/b&gt; is a long.</content:encoded>
      <pubDate>Thu, 22 Mar 2007 22:34:18 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-03-22:default/c/1174601957333/1174602858370</guid>
      <dc:date>2007-03-22T22:34:18Z</dc:date>
    </item>
  </channel>
</rss>

