Hello Derek,
You have two options:
1. Delare your com variable as a character pointer.
char * com;
2. Use the GetTextBoxLine function to read a specific line of the text box or iterate through all the lines.
char text[MAX_LINE_LEN];
int i, numLines;
GetNumTextBoxLines (panelHandle, PANEL_TEXTBOX, &numLines);
for (i = 0; i < numLines; i++) {
GetTextBoxLine (panelHandle, PANEL_TEXTBOX, i, text);
}
Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter