Hi All,
I'm working with a script that has worked just fine in the past, but doesn't seem to be working, and I think it's because the file name is too long.
So, I have a section of script that is supposed to save a PNG file of the report window, and it names the file based on the two column names used in the analysis. Due to the names of the columns and location of the data table, the full name of the file has 157 characters in it, the directory path has 94 and the name of the PNG file has 63 characters. This is the section of code:
pic_name = "Cross_Corr_of_" || ycols[1] || "_with_" || icols[1] || "_" || Plant || ".png";
nwin[Outline Box( 1 )] << Save Picture( dir || pic_name, "png" );
Windows claims that it has the ability to manage file names that are up to ~256 characters, and I'm well below this, so from a Windows perspective, I should be fine. I can't find any documentation that JMP has any character limitations, but it apparently does. If I change the code and just define the pic_name = "test.png", it saves the PNG file to the right directory, no problem. But, when I use the above defined name, then it executes the code, but doesn't end up saving a file.
Does anyone know what the character length limit is? And if so, can this be changed or modified so that I can use my code as intended?
Thanks!,
DS