12-30-2017 09:00 AM
According to the help tags are associated with a given line.
Now I see that tags move a line down if I insert some text which contains a newline...
Let me try to illustrate the observed behavior:
TAG xxxxxxxxxx1
xxxxxxxxxx2
becomes
xxxxxxxxxx1yyyyy
TAG yyxxxxxxxxxx2
Is this the intended behavior? Somehow I find it counter-intuitive, I would prefer tags being associated with the beginning of a line, not with its end.
This line year is ending, may the next bring us many reasons of being grateful.
Solved! Go to Solution.
01-04-2018 06:38 AM
Hi Wolfgang,
one general question: Do you use CVI 2017 or an older version? If not which one?
01-04-2018 06:47 AM
Hi Melanie,
you are right, this information is missing - I am using CVI 2017.
01-04-2018 07:06 AM
Hi Wolfgang,
thank you for your reply.
I checked the behavior in my CVI 2017 installation and see the following:
TAG functionname (parameters);
nextcodeline
I started typing between the functionname and the brackets around the parameter and entered: "(some different parameters); \n [Enter] newfunctionname". What I got was:
TAG functionname (some different parameters);
newfunctionname (parameters);nextcodeline
I think this is what you expect, and not what you see. Is that correct?
I expect the behavior I see, so the question is: What is going wrong on your machine.
Can you provide me the following information:
- The exact build number of CVI you use
- If the issue occurs with every project, maybe give an example a try.
- If not, can you provide the complete project?
01-04-2018 07:29 AM
Hi Melanie,
yes, you are correct - I would expect the behavior you observe.
I did check my observation on two different computers (but both running Windows 7 64 bit, CVI 2017 17.0.0 build 295) with two different projects, with the same observation - by the way, I didn't know that different build numbers exist...
So let me describe what I do in some more detail:
1. I have the following:
TAG functionname ( parameter1,
parameter2,
parameter3 );
nextcodeline
2. Now I select the line from parameter1 until (but excluding) parameter2, as indicated by the underline:
TAG functionname ( parameter1,
parameter2,
parameter3 );
nextcodeline
That is, I select exactly one line, from line 6 column 31 to line 7 column 30
3. I copy it using Ctrl+C
4. I move the cursor to functionname and place it somewhere in the middle
5. I paste the line
6. The line is inserted as expected, but the TAG is moved
01-04-2018 07:40 AM
Hi Wolfgang,
thank you for the explanation.
The good news: We run exactly the same system configuration and I see the behavior now, too.
The bad news: In my opinion this is not expected.
I will report the issue to R&D.
01-04-2018 07:47 AM
Thank you so much!
01-22-2018 12:09 AM
Hi Melanie,
could you kindly post the CAR so that we can more easily see when the issue gets resolved?
Thanks!
01-22-2018 02:35 AM
Hi Wolfgang,
thank you for your message.
I forgot to post the tracking number. It is
Best,
Melanie
01-22-2018 05:48 AM
Thanks!