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
 GetPage and ReName Functions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

superman1

UK
6 Posts

Posted - 10/30/2002 :  09:29:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am having difficulty using the GetPage, GetName and ReName functions and I fear others within the Page Class.

My section of Code is as follows:

#include <Origin.h>
#include <Wksheet.h>
#include <Page.h>
#include <Graph.h>
#include <Data.h>
#include <Project.h>
#include <Utilities.h>

void reorgpro()
Worksheet wks;
wks.Create();
string WinName;
WinName="Results";
wks.GetPage().ReName(WinName);

This code follows what is shown in the manuals, but does not compile.
Can anyone help?
If you know of another way to intialize a worksheet and name it please pass it on.

regards

easwar

USA
1965 Posts

Posted - 10/30/2002 :  10:26:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

There is a typo in the last line. It should be a lower case n in Rename

We will check if the documentation still says it is upper case N.

By the way, it is not necessary for you to include all those .h files in your code. The ones you have listed are all part of Origin.h and so it is sufficient only to include Origin.h

Easwar
OriginLab.



#include <origin.h>
void reorgpro()
{
Worksheet wks;
wks.Create();
string WinName = "Results";
wks.GetPage().Rename(WinName);
}


Edited by - easwar on 10/30/2002 10:38:19 AM
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