02-23-2006 12:04 PM
02-23-2006 07:45 PM
Thanks Darren for the comprehensive step by step guide... I finally managed to get it right!!
I was having a problem with getting the correct datatype from the 'value' property but i managed to resolve it by 'including the datatype' in the typedef of the ctrl ref. Continuing on the point, when do you suggest we should include the datatype and when not to. Just curious...
Thanks once again for the great tip...
Zulfi
02-23-2006 08:50 PM
If you plan on ever using the Value property on a control that can have different datatypes (Listbox, Radio Buttons, etc.), you should include the datatype. If you ever plan on writing subVIs that take a non-datatype-specific reference (like a subVI that takes in a Listbox reference, where you may be dealing with both single-select listboxes and some multi-select listboxes), then you should not include the datatype, so the subVI would be able to take both kinds of control references without giving you a broken wire.
There are probably other reasons, but those are the first things that come to mind.
Hope this helps,
-D
02-24-2006 07:23 PM
Thanks for the help Darren. Its really been most helpful.
Zulfi