dbTalk Databases Forums  

openqm question

comp.databases.pick comp.databases.pick


Discuss openqm question in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nagchampa
 
Posts: n/a

Default openqm question - 06-07-2011 , 05:24 AM






How can I simply reference another dictionary entry "C" (calculated) type
or "D" type

From within another "C" type dictionary entry?

Would like {DICTNAME} or something like that as other implementations may
have done somewhere.

Reply With Quote
  #2  
Old   
nagchampa
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 05:38 AM






OK - maybe fixed this --

Use ITYPE(@RECORD)

- as @ID is set.

Reply With Quote
  #3  
Old   
nagchampa
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 05:47 AM



But that means I have to read the separate dictionary record in

ITYPE(dictrec)

isn't there something simpler?

Reply With Quote
  #4  
Old   
nagchampa
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 05:51 AM



On Tue, 07 Jun 2011 10:47:04 +0000, nagchampa wrote:

Quote:
But that means I have to read the separate dictionary record in

ITYPE(dictrec)

isn't there something simpler?
Is there a file variable set for the current dictionary - maybe a system
(@var) variable?

Reply With Quote
  #5  
Old   
nagchampa
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 05:57 AM



No can do:

00000068: Unable to load 'ITYPE' object code in dictionary expression

ITYPE sub can't be used within dictionary

Reply With Quote
  #6  
Old   
nagchampa
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 06:01 AM



ah -- as martin Philips said:

"You can use TRANS() in C-types in exactly the same way as in programs.
Alternatively, you can reference another data item defined in the same
dictionary using expressions such as
X = {name}
where name is the item to be referenced. The curly brackets are part
of the syntax."

http://www.rhinocerus.net/forum/data...nary-item.html

I was originally right -- absolutely fantastic.
What an amazing product openqm is -- why use anything else for your

Reply With Quote
  #7  
Old   
Martin Phillips
 
Posts: n/a

Default Re: openqm question - 06-07-2011 , 11:38 AM



What a great thread.... A question and five responses all from the
original poster.

He is absolutely right. The curly bracket syntax supported in C-type
dictionary items allows you to reference other items from the same
dictionary.


Martin Phillips, Ladybridge Systems.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.