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
 Reading strings from note

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
kemeyer Posted - 07/17/2009 : 08:24:06 AM
Origin Ver. 7.0558 and Service Release (Select Help-->About Origin):
Operating System: Windows XP

Hello,

Is it possible to read information from a note? I am able to write data from my worksheet to a note using the redirection, but I haven't seen anything allowing you to read strings from a note. What happens is when data is taken, a note is generated in which is listed some information I would like to include at the top of a .txt file I will export. I was hoping to get that data and put it in a new note with the data below it, and then save the note as a .txt file. However, I am stuck on how to access the strings I need from the other note. Can you help me? I thought perhaps if the strings can't be read from a note, perhaps a temporary .txt file could be made.

Thanks,
Katie
2   L A T E S T    R E P L I E S    (Newest First)
kemeyer Posted - 07/17/2009 : 09:44:53 AM

Thank you so much! For whatever reason, I didn't see that in the help files I was searching through.

When I executed that command, it printed it to the script window. When I redirected it to a note page Notes, I got an error. Can I save it to a string somehow or put it right into a different note page?

Also, is there any way that you can search to read just a section of a note? The note I have has a lot of excess information that is generated, and I only want the comments portion. In each note it is the same, and the string reads:

comment="The comment is in here"

It is the first and only occurance of the word comment within the note so might I be able to search for it and then read the text between the quotation marks?
cpyang Posted - 07/17/2009 : 08:59:46 AM

void nn(string strNoteWinName)
{
	Note nw(strNoteWinName);
	out_str(nw.Text);
}


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