Hi all
I am working on a project that would require one program to talk to another program(same computer), hence the use of the network variable.
Now say I have a list or table of names that changes in one program, what I would like to do is take parts of the list that is in one program and transfer certain parts of the list to the other program.
The list needs to be able to transferred with at least 40 single names of different size with letters.
I have the data arrays ready I just need to figure out the transfer part.
I tried the 3D.sim but there seems to be a problem when I am using strings especially when the strings are different lengths.
Also when using the CNVCreateArrarDataValue errors on the array value occur being to small on the array size?
Array listings of strings are usually 2D (Row, and size) does this factor in??
Assume network variable is declared
exp code just to get the idea...
int i=0, numItems=10;
CNVData data=0, NVlist[120]={0};
size_t dim={0};
size_t dim2={0};
for(i=0;i<numItems;i++)
{
char listName[20]="/0";
GetTabelCellValue(panel, PANEL_LIST, MakePoint(2,i), listName);
dim[0]=strlen(listName); // i tried size_of but that definalty makes the dim to big
CNVCreateArrayDataValue(&NVList[i], CNVString, listName,1, dim) /////i keep getting array size issues here
dim2++;
}
CNVCreateStructDataValue(&data, NVList,dim2) ///here is another issue with dimensions
CNVPutDataInBuffer(Handle, data,2000);
i also tried
for(i=0;i<numItems;i++)
{
char listName[20]="/0";
GetTabelCellValue(panel, List, MakePoint(2,i), listName);
dim[0]=strlen(listName);
CNVCreateDataValue(&NVList[i], CNVString, listName)
dim2++;
}
CNVCreateStructDataValue(&data, NVList,dim2) ///one string value transfers
CNVPutDataInBuffer(Handle, data,2000);
i think i am close but jsut cannot get the right sequence:smileysad:
Thanks ahead of time