Running TM1 10.2
The Scan function is having some problems, it seems.
Can someone run this TI code in a new process please?
Code: Select all
asciioutput('test.txt', numbertostring(Scan('A', 'AA')));
Wim
Code: Select all
asciioutput('test.txt', numbertostring(Scan('A', 'AA')));
Not a bug; you've got a rogue character in front of the A substring, specifically an ASCII 31 character. I noticed that there was a space between the quote and the A when the forum notification e-mail came in but I didn't see it in the post above; I assumed that you'd just edited it but that wasn't it.Wim Gielis wrote:Hi
Running TM1 10.2
The Scan function is having some problems, it seems.
Can someone run this TI code in a new process please?
For me it gives "0", because............. ???Code: Select all
asciioutput('test.txt', numbertostring(Scan('A', 'AA')));
Wim
Declan, Excel 2013 has a fundamental change from a MDI to SDI application that might have some significant issues for TM1/ Excel. The Perspectives add-in probably has a lot of (old-ish) code that didn't consider this sort of shift in functionality.declanr wrote:I have found an even weirder issue though; to be fair I am using Excel 2013 (which isn't supported with CX10.2)
Sounds like you've got a bit of VBA doing an N_CONNECT or similar in there? The Excel 2013 event model has probably had a change meaning that some TM1 VBA code might not have the same result in Excel 2013 as it did in earlier versions. Note the comments like:declanr wrote:If I close the whole of excel, open excel, open the sheet (connect to tm1 again somewhere in there)... it finally says "Feb".
andmicrosoft wrote:Custom ribbon tabs and controls that assumed a single ribbon UI per application instance in previous versions of Excel will now be propagated onto each workbook ribbon in Excel 2013. Whereas in MDI the custom ribbon developer didn’t need to consider multiple instances of their controls on different instances of Excel’s ribbon UI, with SDI they will need to account for this situation.
If you want to keep all the ribbon UI controls in the same state across open workbooks, you will need to:
Ensure that the code is able to cycle through the workbook windows and update the state of the controls.
...
etc.microsoft wrote:With the shift to SDI, all of the Excel application-level window methods, events, and properties remain unaffected and work the way they have in previous versions of Excel (for example, Application.ActiveWindow, Application.Windows, and so on).
In Excel 2013, all of the workbook-level window methods, events, and properties now operate on the top level window...