The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Way to store value like TAG.X in 51a
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: Way to store value like TAG.X in 51a
Can VARs be assigned in the itemdef section? I don't think so, try with tags instead in this case.

However, old versions (don't know if 51a had this behaviour too) needed to use try to set value<string>, so the item should be like this:

Code:
[7b56]
ID=0e3b
NAME=Book of Test
COLOR=070d
TYPE=12
MOREX=0
MOREZ=3
MOREY=1

TAG.TST=TestTwo

ONTRIGGER=CREATE
try TAG.TEST<UID>.SomeKey=TestOne //Also this one SHOULD NOT WORK in the item creation, as this section is for static keys, you should use ONTRIGGER=CREATE to set this one because until  CREATE the item does not have uid.

ONTRIGGER=DCLICK
    src.message Test1: <TAG.TEST<UID>.SomeKey>
    src.message Test2: <TAG.TST>
    return 1
(This post was last modified: 01-30-2014 05:58 AM by XuN.)
01-30-2014 05:58 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Way to store value like TAG.X in 51a - XuN - 01-30-2014 05:58 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)