[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Sharing tables in OI and Arev (OpenInsight 32-bit Specific) ====
=== At 21 SEP 2003 06:32:49PM Jonathan Bird wrote: ===
{{tag>"OpenInsight 32-bit Specific"}}
I have a custom application that is being slowly converted "portion at a time" from Arev 3.12 to OI32.
we have a table called "CURRENCY" that has the currency symbol as a field. This has been entered via Arev, so the Sterling symbol is ASCII character 156. This field is accessed via a symbolic in a PRICE table using xlate. All good and easy. However, in the Windows world in order to represent the Sterling symbol we need to use the Window char set. So the question:
Is there any way the symbolic in the PRICE table can be aware of being used in AREV or OI so the appropriate conversion can take place?
Ta
J
----
=== At 21 SEP 2003 06:46PM Paul Rule wrote: ===
I'm sure there's a much smarter and more generic way of doing this, but a simple way would be to set up a common variable to define what system is being used.
eg:
common /systype/system@
set system@ when you login to arev then check it in your symbolic.
Same for OI.
----
=== At 24 SEP 2003 04:27AM Steve Smith wrote: ===
Tried the program stack ?? or @tcl.stack ??.
----
=== At 24 SEP 2003 09:51AM Bob Carten - Revelation Technical Support wrote: ===
based on [url=http://www.revelation.com/website/discuss.nsf/search/46232EED36D48C48852565C000580862?OpenDocument]this post[/url], try something like
function Get_Rev_Application( void )
#define AREV
#ifdef REVENG
#undefine AREV
#endif
application=unknown'
#ifdef REVENG
application=OI"
#endif
#ifdef AREV
application=Arev'
#endif
return application
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=CC497362CE6408F285256DA8007BDAF9|View this thread on the forum...]]