Changeset 1219 for sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf
- Timestamp:
- Oct 4, 2019 8:56:43 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf
r1164 r1219 1086 1086 // returns a shortened file name (26 characters max) so that the loader 1087 1087 // won't try to create Igor objects that have names that are longer than 31 1088 // 1088 // 1089 // if Igor 8+, use longer names (within reason) 1090 // 1089 1091 Function/S ShortFileNameString(inStr) 1090 1092 String inStr 1091 1093 1092 1094 String outStr="" 1093 Variable maxLength=25 1095 Variable maxLength 1096 1097 if(IgorVersion() < 8) 1098 maxLength = 25 1099 else 1100 maxLength = 40 1101 endif 1102 1103 1094 1104 Variable nameTooLong=0 1095 1105 String/G root:Packages:NIST:gShortNameStr = inStr[0,maxLength-1]
Note: See TracChangeset
for help on using the changeset viewer.