<?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/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Terms Hardwarekey evade token problem in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288226#M7568</link>
    <description>Try this:&lt;BR /&gt;

&lt;PRE&gt;Token="0001"&lt;/PRE&gt;

This way the variable Token will be a Text, just like that value you read from the Text file.&lt;BR /&gt;
&lt;BR /&gt;
Also, make sure that licencekey, key1, and key2 variables are all the same type. I am not sure if these are number or text but you can make them either.&lt;BR /&gt;
You can make them text by &lt;BR /&gt;

&lt;PRE&gt;licencekey=""
key1=""
key2=""
&lt;/PRE&gt;

or a number by: &lt;BR /&gt;

&lt;PRE&gt;licencekey=0
key1=0
key2=0
&lt;/PRE&gt;

at the beginning of the script.</description>
    <pubDate>Sat, 04 Jun 2016 10:44:38 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2016-06-04T10:44:38Z</dc:date>
    <item>
      <title>Terms Hardwarekey evade token problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288223#M7565</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hello,&lt;BR /&gt;
I have problem with these terms.&lt;BR /&gt;
I want, when user have harware key (licence key) wrote in my database, so he can use it.&lt;BR /&gt;
But I want  to put it eventuality use token key from .txt files in C:/ and evade 1.term (Licence key)&lt;BR /&gt;
Can you help me, where I have misstake or how do that....&lt;BR /&gt;
---------&lt;BR /&gt;
IF licencekey=key1 or key2 GOSUB "program"&lt;BR /&gt;
IF licencekey&amp;lt;&amp;gt;key1 or key2 GOSUB "token"&lt;BR /&gt;
end&lt;BR /&gt;
"token":&lt;BR /&gt;
Token=0001&lt;BR /&gt;
ch1=OPEN("TEXT","C:/token.txt","SEPARATOR=',',MODE=RO, FULLPATH")&lt;BR /&gt;
n=INPUT(ch1, 1, 1,value)&lt;BR /&gt;
IF value=token GOTO "program"&lt;BR /&gt;
IF value&amp;lt;&amp;gt;token GOTO "end"&lt;BR /&gt;
CLOSE (ch1)&lt;BR /&gt;
&lt;BR /&gt;
"program":&lt;BR /&gt;
........&lt;BR /&gt;
........&lt;BR /&gt;
"end":&lt;BR /&gt;
.......&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:57:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288223#M7565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T07:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Terms Hardwarekey evade token problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288224#M7566</link>
      <description>Try this:&lt;BR /&gt;

&lt;PRE&gt;IF (licencekey=key1 OR licencekey=key2) THEN
    GOSUB "program" 
ENDIF
IF (licencekey&amp;lt;&amp;gt;key1 AND licencekey&amp;lt;&amp;gt;key2) THEN
    GOSUB "token" 
ENDIF
&lt;/PRE&gt;

Or:&lt;BR /&gt;

&lt;PRE&gt;IF (licencekey=key1 OR licencekey=key2) THEN
    GOSUB "program" 
ELSE
    GOSUB "token" 
ENDIF
&lt;/PRE&gt;

You should check the GDL Reference Guide for correct syntax.</description>
      <pubDate>Thu, 02 Jun 2016 13:28:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288224#M7566</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2016-06-02T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Terms Hardwarekey evade token problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288225#M7567</link>
      <description>Thank by answear, but value stop work it.&lt;BR /&gt;
What to put parameters - TEXT, number?</description>
      <pubDate>Fri, 03 Jun 2016 08:05:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288225#M7567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-03T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Terms Hardwarekey evade token problem</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288226#M7568</link>
      <description>Try this:&lt;BR /&gt;

&lt;PRE&gt;Token="0001"&lt;/PRE&gt;

This way the variable Token will be a Text, just like that value you read from the Text file.&lt;BR /&gt;
&lt;BR /&gt;
Also, make sure that licencekey, key1, and key2 variables are all the same type. I am not sure if these are number or text but you can make them either.&lt;BR /&gt;
You can make them text by &lt;BR /&gt;

&lt;PRE&gt;licencekey=""
key1=""
key2=""
&lt;/PRE&gt;

or a number by: &lt;BR /&gt;

&lt;PRE&gt;licencekey=0
key1=0
key2=0
&lt;/PRE&gt;

at the beginning of the script.</description>
      <pubDate>Sat, 04 Jun 2016 10:44:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Terms-Hardwarekey-evade-token-problem/m-p/288226#M7568</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2016-06-04T10:44:38Z</dc:date>
    </item>
  </channel>
</rss>

