02-11-2011 06:46 AM
Hi guys,
I can not select Include Data Type for my refnum. I want to convert from weakly to strictly typed.
02-14-2011 02:27 AM
I find out. When I create a text button refnum, I can't get it strictly typed. When I use regular button refnum it's strictly typed.??
02-14-2011 07:37 AM
If you ctrl-drag the control into the refnum control, it will adapt.
It may not be obvious but just pretend the refnum control is a cluster container and drag and drop the other control into it. When you find teh sweet spot the refnum will adapt.
Ben
02-16-2011 06:58 AM
Ben,
To what the refnum control will adapt? Coz I can't get a strictly typed refnum for a text button.
02-16-2011 07:27 AM
With no code or images you and I could dance for days!
I'll let my grandaughter help out a bit to see if we can get anywhere.
In the image below Oliva is trying to figure out how she can crate a refnum that is typed like the string control she has on the FP.
To let LV "know" how she wants the refnum typed, she oes a control-drag on the string control...
...and as shown below (A) she drags the copy until she sees she is over the sweet spot (notice marching ants around ref) and then she drops the control (B)...
...resulting in a refnum that istyped as s string.
If that does not help then slow down and post code or iamges to illustrate your request.
Ben
PS Please excuse the proud grampa thing. i have to do smoething to make answering questions fun for me.
02-16-2011 07:45 AM
Ben,
Only for the nice pics of ur granddaughter I would like to give u Kudo's. U can be very proud... 😉
But regarding my topic.I need to link that refnum to to a reference on another vi. But if that reference at the other vi is not strictly typed, I can't get my refnum strictly typed.
02-16-2011 07:57 AM
I think I understand better now.
You can either take the route of passing the strictly typed refs or to work with the non-strict types.
This thread outlines how I pass the refs.
It uses Action Engines to pass a type def cluster of the refs I need.
If that route is of no use then this thread talks about dealing with refs of unknown types.
Sorry about teh shot-gun approach to answering. This machine does not have a modern version of LV.
Ben