<?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: Attempting to Assign to an Object That is not an L-Value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61973#M33384</link>
    <description>&lt;P&gt;The&amp;nbsp;Assign() function takes two arguments, the left and the right side as they appear using the operator. An example of an valid assignment is x = Log(5). An example of an invalid assignment is Log(5) = x.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 11:05:59 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2018-07-02T11:05:59Z</dc:date>
    <item>
      <title>Attempting to Assign to an Object That is not an L-Value</title>
      <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61971#M33382</link>
      <description>&lt;P&gt;Hi, I'm getting this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"attempting to assign to an object that is not an L-value{1} in access or evaluation of 'Assign' , Row() &amp;amp; dt:sequence[Row() + 1] = Row() + 1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not quite sure what L-value means. Think it might be to do with the fact that sequence is an inbulit function. Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:59:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61971#M33382</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-07-02T10:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to Assign to an Object That is not an L-Value</title>
      <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61973#M33384</link>
      <description>&lt;P&gt;The&amp;nbsp;Assign() function takes two arguments, the left and the right side as they appear using the operator. An example of an valid assignment is x = Log(5). An example of an invalid assignment is Log(5) = x.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 11:05:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61973#M33384</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-07-02T11:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to Assign to an Object That is not an L-Value</title>
      <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61979#M33390</link>
      <description>&lt;P&gt;Okay thanks, I changed the order of the statement to: Row() = dt:sequenceSteps[Row()];&lt;/P&gt;&lt;P&gt;but I'm still getting the same error. Should I assign Row() to a variable? Still don't quite understand what the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:36:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61979#M33390</guid>
      <dc:creator>Jaz</dc:creator>
      <dc:date>2018-07-02T12:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to Assign to an Object That is not an L-Value</title>
      <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61984#M33392</link>
      <description>&lt;P&gt;an L-value is a value that can appear on the left-hand side of an assignment statement. Here's an example that might be similar to what you are trying to do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "Untitled",
  Add Rows( 5 ),
  New Column( "sequenceSteps",
    Numeric,
    "Continuous",
    Format( "Best", 12 ),
    Set Values( [5, 3, 1, 2, 4] )
  )
);

Row() = 1;

For( i = 1, i &amp;lt;= 20, i++,
  Row() = dt:sequenceSteps[Row()];
  dt &amp;lt;&amp;lt; clearSelect;
  dt &amp;lt;&amp;lt; selectrows( Row() );
  Print( Row() );
  Wait( 1 );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;5&lt;BR /&gt;4&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;1&lt;BR /&gt;5&lt;BR /&gt;4&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;1&lt;BR /&gt;5&lt;BR /&gt;4&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;1&lt;BR /&gt;5&lt;BR /&gt;4&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;1&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:11:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/61984#M33392</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-07-02T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to Assign to an Object That is not an L-Value</title>
      <link>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/481185#M72549</link>
      <description>&lt;P&gt;I have a very simple example of this:&amp;nbsp; I have a table with a column named "Electrolyte Solution".&amp;nbsp; When I did this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for each row(
	:Electrolye Solution = "Lot 5";
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I got the error "attempting to assign to an object that is not an L-value".&amp;nbsp; Of course, I had left the "t" out of the column name.&amp;nbsp; You know what would have been super helpful?&amp;nbsp; An error message that said:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;"Electrolye Solution" is not a valid column name.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, I could have fixed my script in 5 seconds instead of 20 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 18:56:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Attempting-to-Assign-to-an-Object-That-is-not-an-L-Value/m-p/481185#M72549</guid>
      <dc:creator>Eric_Hill</dc:creator>
      <dc:date>2022-04-21T18:56:16Z</dc:date>
    </item>
  </channel>
</rss>

