02-06-2009 11:37 AM
Solved! Go to Solution.
02-06-2009 02:33 PM - edited 02-06-2009 02:34 PM
It's not easy to try guessing what's happening with so few elements.
Can you give us some more details: which CVI version are you using, which OS, an abstract of your code, a sample panel...?
02-07-2009 09:46 AM
Hi,
Just a guess:
If your textbox is inside a tab page then you should call GetPanelHandleFromTabPage first to get a handle and use that handle for SetCtrlVal and other similar functions as the first parameter.
Hope this solves your problem.
Regards,
02-09-2009 05:32 AM
02-09-2009 06:41 AM
Hi Nicla,
SetCtrlVal function actually works with character strings. You can write:
char path[256];
GetLabelFromIndex (panel1, PANEL1_LIST, index, path);
SetCtrlVal (panel2, PANEL2_TEXTBOX, path);
Besides, I doubt that you are confusing a 'string control' with a 'textbox control'. A string control is single line box in which you can type/display a pathname or any other string.
A textbox can be multiline with scroll bars, etc.
You cannot be blamed for this. Because the term "textbox" is also used as a name for the general single line version (which NI calls a string control) by the computer users.
Anyway, you should be able to use SetCtrlVal for both string and textbox type of controls.
Hope this helps,
02-09-2009 07:00 AM
10-05-2011 10:44 AM
This is a very simple question, but I have not been able to learn the answer. What is the max # of character a textbox can hold? When this # is exceeded what is the error generated?