Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why is not the value shown when hover over loopnr and gdslag in this code snippet

16 views
Skip to first unread message

Tony

unread,
Apr 10, 2013, 11:04:11 AM4/10/13
to
Here I have a short method and when I hover over loopnr or gdslag in
debugger nothing is shown but
if I hover over the right part on the same row the debugger display the
value.
Most of the time it's not possible to hover of the right part to get the
value so
I want the debugger to display the value when hover of as in this case
loopnr and gdslag.
Is it some settings in the debugger that need to be done.
I use VS2010 Proffessional.

public override object RunRecordSave(int iplevel)
{
string freeText = ""; // free text to be used in combo

switch (iplevel)
{
case 2:
this.DataSet.ttFgodsdag[0].anlpnr =
Convert.ToInt32(this.CallNo.Value.ToString());
if (goodsOrWaitingReason.SelectedIndex != -1) // A choice
has been selected if true
{
string loopnr =
((ListItem)goodsOrWaitingReason.SelectedItem.DataValue).Loopnr;
string gdslag =
((ListItem)goodsOrWaitingReason.SelectedItem.DataValue).Gdslag;
}
else
{
freeText = goodsOrWaitingReason.Text;
}

break;
}

return null;
}

//Tony

Anders Eriksson

unread,
Apr 13, 2013, 5:05:19 AM4/13/13
to
On 2013-04-10 17:04, Tony wrote:
> Here I have a short method and when I hover over loopnr or gdslag in
> debugger nothing is shown but
> if I hover over the right part on the same row the debugger display the
> value.
...
> public override object RunRecordSave(int iplevel)
> {
> string freeText = ""; // free text to be used in combo
>
> switch (iplevel)
> {
> case 2:
> this.DataSet.ttFgodsdag[0].anlpnr =
> Convert.ToInt32(this.CallNo.Value.ToString());
> if (goodsOrWaitingReason.SelectedIndex != -1) // A
> choice has been selected if true
> {
> string loopnr =
> ((ListItem)goodsOrWaitingReason.SelectedItem.DataValue).Loopnr;
> string gdslag =
> ((ListItem)goodsOrWaitingReason.SelectedItem.DataValue).Gdslag;
> }
> else
> {
> freeText = goodsOrWaitingReason.Text;
> }
>
> break;
> }
>
> return null;
> }
>

Just some "stupid" control questions...

When you are hovering over loopnr or gdslag have you executed the line?
and are you still within the braces {} ?

// Anders



--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

Tony

unread,
Apr 17, 2013, 8:00:39 AM4/17/13
to
Yes.

"Anders Eriksson" wrote in message news:kkb74...@news6.newsguy.com...

Anders Eriksson

unread,
Apr 23, 2013, 4:32:58 AM4/23/13
to
On 2013-04-17 14:00, Tony wrote:
> Yes.
>
> "Anders Eriksson" wrote in message news:kkb74...@news6.newsguy.com...
> On 2013-04-10 17:04, Tony wrote:
>> Here I have a short method and when I hover over loopnr or gdslag in
>> debugger nothing is shown but
>> if I hover over the right part on the same row the debugger display the
>> value.
> ...
>
> When you are hovering over loopnr or gdslag have you executed the line?
> and are you still within the braces {} ?
>
> // Anders
>

Is it never displaying the value or is it after you have done changes?
I have noticed that sometimes you need to do a rebuild and sometime you
even have to restart Visual Studio! Don't know why...

// Anders
PS! Please don't top post! You see why in this post...

Jeff Johnson

unread,
Apr 26, 2013, 6:23:45 PM4/26/13
to
I have a completely off-topic question for this thread. I have often noticed
that when some Scandinavian* folks post code and variables are in their
native language, there is often one or more that ends in "slag." What does
this word mean? I am curious.


*I think they're Swedish, but if I'm wrong and they're Norwegian, oops, my
mistake.


0 new messages