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
 LabTalk Forum
 Saving Notes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kemeyer

39 Posts

Posted - 07/21/2009 :  10:59:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.7.0558 and Service Release (Select Help-->About Origin):
Operating System: XP

Hi,

I have something strange occuring to me when I try to save my notes. If it is a note I've generated myself, the save -n noteName fileName works fine. However, when I try to save the notes generated when data is collected, is says and error occurs. Why does the command work for those notes and not the notes generated upon data collection?

Also, is there another way you can save the notes via code? (I am always going to rewrite it a file fileName because I just need to have the notes in txt format so I can search for a substring in them)

If temporary txt files would work differently, that could work for my needs because I only need to keep the file long enough to pull a string of comments from it.

Thanks,
Katie

kemeyer

39 Posts

Posted - 07/21/2009 :  1:55:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Okay, so I found out that it didn't work because for whatever reason the save -n command doesn't work when the notepage is hidden. How can I make the notepage unhidden through code? I tried setting it temporarily as the active window with window -w but it gave be an error. Is there anyway I can make a note window unhidden? It seems to me that there isn't a lot of access to the note pages in general, or is there a special way to access these? (They never register as %H for example)

Katie
Go to Top of Page

larry_lan

China
Posts

Posted - 07/22/2009 :  04:31:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Katie:

It seems a LabTalk bug. Since we will not update Origin 7 anymore, could you please write some Origin C functions to implement this? For example, this Origin C code will active the notes window named "Notes":

void set_note_show(string strName = "Notes")
{
	Note note(strName);
	note.SetShow();
}


Thanks
Larry
OriginLab Technical Services
Go to Top of Page

kemeyer

39 Posts

Posted - 07/23/2009 :  11:30:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, I will try that.
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