06-27-2016 12:21 PM
06-27-2016 12:26 PM
If I run this code, it works without error. Not sure what your issue is now.
06-27-2016 12:30 PM
PLease follow following steps:
a. Run the code. Create and save a file (with data populated in the file).
b. now modifiy the code to open the file you just created (and not the template) and now run the code.
The intent of second step is, open an already created file and change/overwrite the data in it. However this time you'll see an error (-41110).
06-27-2016 01:03 PM
06-27-2016 01:09 PM - edited 06-27-2016 01:10 PM
I'm pretty sure my idea is what OP wants. Here, I edited his code to just the basic bookmark insertion code and it runs as I believe he wants.
Edit: Thanks ben64
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-27-2016 01:34 PM - edited 06-27-2016 01:39 PM
Another (better....maybe) solution would be to not have text as part of the bookmark. If you highlight text and Insert -> Bookmark, the text becomes the bookmark and is deleted when text is appended at this location. If you place the cursor at a location and insert the bookmark (with no text selected), it doesn't disappear when the text is appended via Labview code. This doesn't require any additional code to reinsert the bookmark.
06-27-2016 01:38 PM
Sorry James. I read the OP's explanation that fields were being used and I assumed they were talking about form fields.
06-27-2016 01:41 PM
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-27-2016 01:47 PM
@James.M wrote:
One disadvantage of using a bookmark as a single point instead of a range, is you would need to figure out what text is next to the bookmark in order to replace that text with a different value. Otherwise, you would have every value just appending with the previous values each time.
Good point. Form fields to the rescue. (or just do what James did )
06-27-2016 01:48 PM
Thank you all so much.
I hope, I'll be able to use James code... I'll try it tomorrow...
Requesting James to save the code in version 2013...