The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Exist (name) for macros wrong value returned

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook Posted - 10/22/2003 : 05:01:31 AM
Hi,

the exist function returns 8 for macros not 6 as stated in the help. This applies to all versions including 7.5.
Please can you clarify/confirm what the exist(name) function returns?

FYI : I'm using this to check if project specific macros are to be run in a generic (cross project) application.

Cheers,

pete

2   L A T E S T    R E P L I E S    (Newest First)
peter.cook Posted - 10/22/2003 : 06:38:39 AM
Hi CP,

Thanks for reply. browsing through 0c_const.h I see

#define EXIST_NONE      0
#define EXIST_DATA 1
#define EXIST_WKS 2
#define EXIST_PLOT 3
#define EXIST_VAR 4
#define EXIST_MATRIX 5
#define EXIST_TOOLBAR 7
#define EXIST_MACRO 8
#define EXIST_PLOT_3D 6
#define EXIST_NOTES 9
#define EXIST_ACTIVE 10
#define EXIST_LAYOUT 11
#define EXIST_EXTERN_WKS 12
#define EXIST_PAGE 13


all of which I think work with exist(name) even to 6.1

Cheers,

Pete

(so just a matter of updating help files)

cpyang Posted - 10/22/2003 : 06:24:22 AM
You are right, as can be seen in oc_const.h with Origin C by searching for EXIST_MACRO

#define EXIST_MACRO 8

This was changed in 1995 from 6 to 8 and the documentation was not
updated.


CP



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000