Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.f. = 1053104173 ?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00803532
Message ID:
00803942
Views:
21
>I think Fabio's asking if you have a field called ll in an open table as well as a variable called ll. If you do, VFP will use the field where it can and the variable otherwise. So an assignment like " ll = 4 " will use the variable, because you can't do an assignment to a field, but " IF ll " will use the field.
>
>So maybe try changing all your " ll " to " m.ll ".

Hi Rob,

I have no tables open during this form. And I don't use table field names that short.

The problem is that the trace window tooltip shows different than the locals window. The program is using the value that the trace window shows ("10...."), so it crashes. But the locals window shows the correct value (.F.)
Here's my entire code:
myMethod()
lparameters tcTarget
local ll
ll = this.oHyperLink.NavigateTo(tcTarget)
if ll
  ll = this.oHyperLink.Wait_Till_Doc_Ready()
endif
return ll

oHyperLink.NavigateTo()
lParameters cTarget, cLocation, cFrame
local lcTarget
lcTarget = iif( empty(cTarget), this.cTarget, cTarget)
if empty(lcTarget)
  return .F.
endif
......
I was testing the program with no target.

before "local ll", both locals and trace did not show the variable at all.
after "local ll" and before "ll = this.oHyperLink....." both locals and trace showed "ll = .F."
after "ll = this......." locals showed ll = .F. but trace showed ll = "10...."
program crashed on "if ll"

I made the problem go away by renaming the variable to llGood, but I'm pretty sure that I've discovered a bug in the HyperLink BaseClass:
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform