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
 X-Function with Column <new> result
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Alex-qwerty

Russia
Posts

Posted - 09/20/2010 :  3:32:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver 8.1 SR3
Operating System: WinXP
I create an user X-Function with output variable of type Column.
The default data for this column is <new>.
User can use as an existing column, as allow function to create a new column.
How can I determine which is the user case in my code?
I want to give a special name for new column.

minimax

348 Posts

Posted - 09/20/2010 :  11:08:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alex,

quote:

I want to give a special name for new column.



If you only want to update the LongName of a <new> column and the name is fixed, a simple way is to use option string N, which is used to specify the default name of output objects.

You can fill for example N: "mycol name" on the Option String column of that output variable in X-Function Builder.

See more details on the usage of option strings in following link:
http://ocwiki.originlab.com/index.php?title=XFProgramming:Option_Strings

Max
OriginLab Technical Support
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