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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Bug in GETN Options?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Shemini

USA
11 Posts

Posted - 06/18/2012 :  5:35:23 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.6, SR2
Operating System: Windows7

Hello,

I just noticed that when using GETN branches you cannot always default the branch to be open. I used the code:

GETN_BEGIN_BRANCH(col, "Specify Column")
GETN_OPTION_BRANCH(GETNBRANCH_OPEN)
GETN_STR(Col, "Please enter the column name", "")
GETN_END_BRANCH(col)

to try to default the branch to be open but if I run the code and close the branch with the mouse-click on the '-' sign then the next time I run it the branch defaults to closed regardless of the GETN_OPTION_BRANCH code which is supposed to default it to be open. This is obviously not a functional issue as the code will still do everything it needs to but it can be a little inconvenient. Is there a way to set the default branch open/closed that will not be affected by how the branch ended up last time?

Thanks,
Shem

Penn

China
644 Posts

Posted - 06/18/2012 :  9:53:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Shem,

This behavior is from the GetNBox function, but not GETN options. If the title (the second argument in GetNBox) is specified, the last status will be remembered. If the title is not specified, it will use the GETN options. We will try to improve such behavior in the future version. Thanks for reporting this.

Penn
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000