terrypin Posted October 12, 2016 Report Share Posted October 12, 2016 I'm writing a complex macro with around 60 variables, including these two text variables:tMMGrossAsctMMGrossDescThey appear correctly in the list under the Variables tab.But in addition the following strange string also appears in the list:tMMGrossAsc%/%tMMGrossDescAnd it won't be deleted! It returns when the macro is re-opened, at the bottom of the list.I'm quietly ignoring it, as it doesn't seem to affect the macro's operation. Looks like some sort of corruption.I'm curious to know if anyone has seen anything similar please - a variable that won't go away? Needless to say, at no stage in my macro am I attempting a division of those two variables, or any other text variables for that matter! -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted October 12, 2016 Report Share Posted October 12, 2016 I'm sorry but I've never seen anything like that. I agree with your assessment if it is as you describe. Perhaps export and import the macro. But more it sounds like you need to start a support ticket with ISS. Quote Link to comment Share on other sites More sharing options...
terrypin Posted October 13, 2016 Author Report Share Posted October 13, 2016 Thanks Cory. I'm in touch with ISS Support, whose curiosity is piqued, like mine. I'm still developing the macro but when it's finished I'll play around with export/import, renaming, etc. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
acantor Posted October 14, 2016 Report Share Posted October 14, 2016 There are times when it's worthwhile to abandon a macro and recreate it entirely from scratch. I have wondered whether a form of instability sets in after messing with the variables: copying, renaming, attempting to switch from one type to another, etc. I have seen text variables that, beyond a certain point, are not recognized as text variables. When this happens, I either delete and recreate the variables (usually with different names), or start again. Paradoxically, it may be faster to start from scratch than to repair a complex macro. Subtle logical or syntactical errors can creep in when reworking a complicated macro. Quote Link to comment Share on other sites More sharing options...
terrypin Posted October 14, 2016 Author Report Share Posted October 14, 2016 Thanks Alan, that's my general feeling too. Some obscure corruption. But for the time being, while it remains 'passive', I'll press on. Rewriting would be a major pain. Hopefully, using a copy of the macro, ISS Support may be able to isolate the cause and fix it. Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
terrypin Posted October 14, 2016 Author Report Share Posted October 14, 2016 Turned out to be down to an invalid command that I never found but happily ISS did. Variable Modify String %tResult%: Append Text String Variable (%tMMGrossAsc%/%tMMGrossDesc%) Now realise that was my careless mistake in trying to add two variables, separated by a text character, in a single command. ISS are looking at how the program's syntax checking allowed it. Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted October 15, 2016 Report Share Posted October 15, 2016 I was thinking about it and I seem to remember having the same problem once a long time ago. But I don't remember how it happened. But it might be here in the forum. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.