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 for Programming
 Forum for Origin C
 GetPage and ReName Functions

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
superman1 Posted - 10/30/2002 : 09:29:13 AM
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
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 10/30/2002 : 10:26:13 AM
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

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