05-09-2012 03:10 PM
I'm using the SetTableCellRangeVals function. I have a structure containing strings. I'm populating an array of strings (array of array of characters) to get the strings from the structure into an array to use in SetTableCellRangeVals. I have declared the array char strings[NumStr][StrLength]. I can populate this array in a for loop.
When I call SetTableCellRangeVals with "strings" as my parameter, I get "found 'pointer to array 32 of char', expected 'pointer to pointer to char'.
When I call SetTableCellRangeVals with "*strings" as my parameter, I get "found 'pointer to char', expected 'pointer to pointer to char'.
When I call SetTableCellRangeVals with "strings[0]" as my parameter, I get "found 'pointer to char', expected 'pointer to pointer to char'.
How do I declare "strings" if I want to populate it in the for loop and use it in SetTableCellRangeVals?
(Windows 7 CVI 2010 SP1)
Thanks
05-09-2012 04:29 PM
Hi,
take a look at LuisG answer here.
05-10-2012 07:43 AM
If it helps anyone else, the part I didn't understand was that I needed an array of strings to hold the strings and an array of addresses to hold the address of each string within the array of strings. Thanks.
09-14-2016 12:15 PM
Hi, Hawkk. Can you please post your code that uses the SetTableCellRangeVals() function and the declaration of the arrays that are passed to it?
09-14-2016 02:03 PM
Sorry I looked but no longer have that SW.