<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I compare variable names in MC15? in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414613#M162405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right!&lt;/P&gt;&lt;P&gt;The variable name; e.g. RmM, can easily extracted from the first column of Coeff. However, how do I check if this variable name from Excel matches a variable in mathcad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2015 08:53:51 GMT</pubDate>
    <dc:creator>Raiko</dc:creator>
    <dc:date>2015-09-24T08:53:51Z</dc:date>
    <item>
      <title>How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414607#M162399</link>
      <description>Hello folks,this is about a basic issue hence no example sheet.For a lengthy calculation I'd like to read in parameters from excel. As this excel sheet is lenghty as well I want to check first whether the parameters in the Excel sheet match the parameters in my MatchCad sheet</description>
      <pubDate>Thu, 03 May 2018 15:06:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414607#M162399</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2018-05-03T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414608#M162400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you first call the parameters you want to check into Mathcad, not the whole sheet, and then perform the check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 07:36:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414608#M162400</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2015-09-24T07:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414609#M162401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's exactly what I want to do. Call the parameters - then compare them to the MC parameters. However, the MC parameters are variables. The content of the variables I could convert to a string and compare to some other string but not the variables themselves.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:08:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414609#M162401</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T08:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414610#M162402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably best posting an replica problem if you can. I am sure what you are describing can be achieved. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:19:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414610#M162402</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2015-09-24T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414611#M162403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an example to further illustrate what I'm up to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:39:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414611#M162403</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T08:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414612#M162404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me get this right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, you would want to check the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92210_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:50:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414612#M162404</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2015-09-24T08:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414613#M162405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right!&lt;/P&gt;&lt;P&gt;The variable name; e.g. RmM, can easily extracted from the first column of Coeff. However, how do I check if this variable name from Excel matches a variable in mathcad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 08:53:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414613#M162405</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414614#M162406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way I can envisage this being possible, is to define your variables as strings names at the top of your worksheet and do the check.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92211_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I do not think it will be possible if you use subscripts in Mathcad though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:02:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414614#M162406</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2015-09-24T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414615#M162407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an idea I got: might it be possible to read in the mathcad parameters into a textbox and do the comparison via VB? I'm thinking of a property called "GetText" but I'm unsure on how to apply it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:13:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414615#M162407</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T09:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414616#M162408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Raiko Milanovic wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello folks,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;this is about a basic issue hence no example sheet.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For a lengthy calculation I'd like to read in parameters from excel. As this excel sheet is lenghty as well I want to check first whether the parameters in the Excel sheet match the parameters in my MatchCad sheet (naming and order of parameters). I'm thinking along the lines of making a one-to-one comparison of variable names (not the variable values!) in order to verify a match.&lt;/P&gt;
&lt;P&gt;Does anybody has an idea how to conduct such a comparison?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How about using an array with the variable names in and iterating through that?&amp;nbsp; You could hide it in a collapsed Area once you've got it debugged and just set a variable to give you the result of the check (eg, a simple "OK" if everything's OK or a list of variables that aren't playing nicely).&amp;nbsp; That is, something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92200_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:13:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414616#M162408</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2015-09-24T09:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414617#M162409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Raiko Milanovic wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Just an idea I got: might it be possible to read in the mathcad parameters into a textbox and do the comparison via VB? I'm thinking of a property called "GetText" but I'm unsure on how to apply it.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Raiko&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am still unsure if that will work with subscripts. I think the approach I mentioned above, and Stuart's detailed explanation is the best way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:17:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414617#M162409</guid>
      <dc:creator>MikeArmstrong</dc:creator>
      <dc:date>2015-09-24T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414618#M162410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stuart.&lt;/P&gt;&lt;P&gt;Neat idea, but then I do need to define the parameters twice. Once as a variable and once as a string for performing a check as you proposed it. This is error prone therefore I'd like to use only the variable names. Perhaps some nifty VB code does the trick?&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:23:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414618#M162410</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T09:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414619#M162411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mike. Everbody seems to agree upon this, i.e. that it is not possible with MC functionalities, hence I will check if Visual basic has something up the sleeve.&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:55:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414619#M162411</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414620#M162412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Raiko Milanovic wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you Stuart.&lt;/P&gt;
&lt;P&gt;Neat idea, but then I do need to define the parameters twice. Once as a variable and once as a string for performing a check as you proposed it. This is error prone therefore I'd like to use only the variable names. Perhaps some nifty VB code does the trick?&lt;/P&gt;
&lt;P&gt;Raiko&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Errare Humane Est.&amp;nbsp;&amp;nbsp; The most obvious way to do that would seem to be to get the Excel array of variable names and pass it to the VBScript.&amp;nbsp; Then iterate through the Math regions until you find variable names you want (I don't know how you guarantee that there are no other variables (such as index variables) or how you would identify them (Tagging them is an option, but then you've got an error-prone maintenance task if you need to change the structure of the worksheet).&amp;nbsp; An alternative, but vary much along the same lines, is to use a file read function to hunt for the corresponding variable definition xml strings in the worksheet's source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, there could be a mistake in any code that misses certain cases! &lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/devil.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 10:01:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414620#M162412</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2015-09-24T10:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414621#M162413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Raiko Milanovic wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you Mike. Everbody seems to agree upon this, i.e. that it is not possible with MC functionalities, hence I will check if Visual basic has something up the sleeve.&lt;/P&gt;
&lt;P&gt;Raiko&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't think I said that it wasn't possible.&amp;nbsp; If you could constrain the problem a little more (ie, give assurances about the presence or not of other variables) then it might be possible.&amp;nbsp;&amp;nbsp; If for example, the VBScript ran through the Excel list of variables and checked that the given variables existed and were present in the correct order that would be&amp;nbsp; partial solution; if you could guarantee that the list was complete, then it would be a complete solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other thing ... what is the relationship between the Excel variables and their Mathcad counterparts (eg, do you read in the Excel sheet as a whole, then extract the values from the resulting matrix or do you read each variable directly)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:11:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414621#M162413</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2015-09-24T12:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414622#M162414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my fault that I didn't read carefully enough. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm reading in the Excel sheet (see the attached files in previous post) and pass the entire contect to a three column matrix. The variable name is a string I can extract from the leftmost column. The value of this variable is stored in the centre column and extracted by submatrix functionality. The unit of the variable is in the right column and passed as a string.&lt;/P&gt;&lt;P&gt;So how do I check if all variables in my mathcad sheet have a counterpart in the Excel sheet. Number of variables and order of read-in should suffice for accepting or rejecting the excel sheet I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 12:28:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414622#M162414</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-24T12:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414623#M162415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it won't work for what you need, but consider an alternate approach: reference Mathcad from within Excel instead of referencing Excel from within Mathcad.&lt;/P&gt;&lt;P&gt;- Add a column in Excel with the Mathcad variable names (R.mM, R.p02, D, ...)&lt;/P&gt;&lt;P&gt;- Within Excel add VB routine to SetValue for each of these variables, calculate the worksheet, then GetValue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 17:36:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414623#M162415</guid>
      <dc:creator>MJG</dc:creator>
      <dc:date>2015-09-25T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414624#M162416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Raiko Milanovic wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Stuart,&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;my fault that I didn't read carefully enough. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;I'm reading in the Excel sheet (see the attached files in previous post) and pass the entire contect to a three column matrix. The variable name is a string I can extract from the leftmost column. The value of this variable is stored in the centre column and extracted by submatrix functionality. The unit of the variable is in the right column and passed as a string.&lt;/P&gt;
&lt;P&gt;So how do I check if all variables in my mathcad sheet have a counterpart in the Excel sheet. Number of variables and order of read-in should suffice for accepting or rejecting the excel sheet I think.&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Oh. You mean something along the lines of the attached (noting that the variable name usually forms part of the first column rather than being all of it)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Text Box assumes that the expression defining the variables is tagged with the word "Excel". If it finds such a region, it gets the regions's xml string, extracts the names, compares them in order of occurence against the Excel-derived names, and returns a string array with each string giving the result of the comparison, the Mathcad variable name and the Excel-derived variable name - this should help pinpoint any discrepancies.&amp;nbsp;&amp;nbsp; There is an additional Mathcad function that gives a simple match/no match (1/0) for the entire list of variable names.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's of any use, you can play around with it to add error checking to cover the cases where there is no "Excel" tagged region and where the number of Excel variables doesn't match the number of Mathcad variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.ptc.com/legacyfs/online/92329_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-4" src="https://community.ptc.com/legacyfs/online/92330_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/92322_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.ptc.com/legacyfs/online/92323_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 19:33:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414624#M162416</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2015-09-25T19:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare variable names in MC15?</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414625#M162417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stuart, that's brilliant!&lt;/P&gt;&lt;P&gt;Thank you very much for the code. I'll use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:48:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/How-do-I-compare-variable-names-in-MC15/m-p/414625#M162417</guid>
      <dc:creator>Raiko</dc:creator>
      <dc:date>2015-09-28T06:48:07Z</dc:date>
    </item>
  </channel>
</rss>

