PDA

View Full Version : Long TAG_NAMES aren't fully reported



SpinMan
01-20-2011, 05:26 AM
I've got a structure with some element names greater than 31 characters. The characters exceeding 31 are not reported upon a call to TAG_NAMES. For instance, if there's an element alpha_bravo_charlie_delta_echo_foxtrot, TAG_NAMES returns alpha_bravo_charlie_delta_echo_. The full name must be used to access this data, though.

Any idea(s) why?

rwagner
01-24-2011, 09:07 AM
Hi SpinMan,
I can't seem to reproduce this on our end...
-Ryan



PV-WAVE 9.50 UNIX/Windows/OpenVMS

Your current interactive graphics device is: X
If you are not running on a linux integrated display use the
SET_PLOT command to set the appropriate graphics device
(if you have not already done so).

PV-WAVE IMSL Mathematics technology available.
PV-WAVE IMSL Statistics technology available.

WAVE> a = {struct1, alpha_bravo_charlie_delta_echo_foxtrot:99.5}
WAVE> info, a, /full
** Structure STRUCT1, 1 tags, 4 length:
ALPHA_BRAVO_CHARLIE_DELTA_ECHO_FOXTROT FLOAT 99.5000
WAVE> print, tag_names(a)
ALPHA_BRAVO_CHARLIE_DELTA_ECHO_FOXTROT
WAVE> x = tag_names(a)
WAVE> info, x
X STRING = Array(1)
WAVE> print, x(0)
ALPHA_BRAVO_CHARLIE_DELTA_ECHO_FOXTROT
WAVE> structinfo, a, tagnames=x
WAVE> info, x
X STRING = Array(1)
WAVE> print, x
ALPHA_BRAVO_CHARLIE_DELTA_ECHO_FOXTROT

SpinMan
01-24-2011, 09:56 AM
R,
Thanks for the reply. I should have specified the version as !version={ axp vms 8.0 vms} which is not displaying the full tag_name(s). The version we have on the windows side is { 80x86 Windows-NT 9.01 i386nt} which does show the full tag_name(s). Can you tell me how this was changed from 8.0 to 9.01?

I don't have structinfo in either version.

rwagner
01-24-2011, 12:53 PM
This bug was fixed in v9.01. The struct_info routine was added in v9.5.

SpinMan
01-26-2011, 05:23 AM
Can you provide me source code for each?

rwagner
01-27-2011, 09:59 AM
The code change was in the kernel (C code) not in a .pro file, so I am unable to do so.

SpinMan
01-27-2011, 11:35 AM
same for structname function added in 9.5?

rwagner
01-27-2011, 05:25 PM
Yes, unfortunately. All the data access routines are written in C.