Hi there.
I wrote a small VI in LV 7 to detect the coordinates of a click on a 2D array. The point was that you use a mouse down event and feed the CtlRef and Coords into it and get X,Y out of it. It worked beatifully.
Then, I ported it to 7.1 and suddenly I started getting 2147483647 as a result (because of the division by NaN) and the following error:
Error 1320
LabVIEW: In edit mode, LabVIEW cannot return a property for a control part that you have not yet created.
So I said, why not try including the data type with the reference, maybe it will like that?
Didn't help...
So I tried running the top VI once with the subVI open and then, after it recieved the refence, running the subVI itself.
Bingo - now it works.
So, what's going on? Why is it that LV thinks I created the "control part" only after I manually run the VI after it recieved the ref? And why wasn't it like this in 7?
Obviously, I tried looking for info about this error on the site, but no results.
___________________
Try to take over the world!