cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-61971%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EVersuch%20einer%20Zuweisung%20zu%20einem%20Objekt%2C%20das%20kein%20L-Wert%20ist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61971%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%2C%20ich%20erhalte%20diese%20Fehlermeldung.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E2%80%9EVersuch%20einer%20Zuweisung%20an%20ein%20Objekt%2C%20das%20kein%20L-Wert%7B1%7D%20ist%2C%20beim%20Zugriff%20oder%20bei%20der%20Auswertung%20von%20%E2%80%9AAssign%E2%80%98%2C%20Row()%20%26amp%3B%20dt%3Asequence%5BRow()%20%2B%201%5D%20%3D%20Row()%20%2B%201%E2%80%9C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20bin%20mir%20nicht%20ganz%20sicher%2C%20was%20der%20L-Wert%20bedeutet.%20Ich%20denke%2C%20es%20k%C3%B6nnte%20damit%20zusammenh%C3%A4ngen%2C%20dass%20die%20Sequenz%20eine%20eingebaute%20Funktion%20ist.%20Jede%20Hilfe%20w%C3%A4re%20dankbar.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481185%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Versuch%20einer%20Zuweisung%20zu%20einem%20Objekt%2C%20das%20kein%20L-Wert%20ist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481185%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20habe%20ein%20sehr%20einfaches%20Beispiel%20daf%C3%BCr%3A%20Ich%20habe%20eine%20Tabelle%20mit%20einer%20Spalte%20namens%20%E2%80%9EElektrolytl%C3%B6sung%E2%80%9C.Als%20ich%20das%20gemacht%20habe%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Efor%20each%20row(%0A%20%3AElectrolye%20Solution%20%3D%20%22Lot%205%22%3B%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIch%20habe%20die%20Fehlermeldung%20%E2%80%9EEs%20wurde%20versucht%2C%20einem%20Objekt%20eine%20Zuweisung%20zuzuweisen%2C%20die%20keinen%20L-Wert%20hat%E2%80%9C%20angezeigt.Nat%C3%BCrlich%20hatte%20ich%20das%20%E2%80%9Et%E2%80%9C%20im%20Spaltennamen%20weggelassen.Wei%C3%9Ft%20du%2C%20was%20super%20hilfreich%20gewesen%20w%C3%A4re%3FEine%20Fehlermeldung%2C%20die%20besagte%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%22Electrolye%20Solution%22%20is%20not%20a%20valid%20column%20name.%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EDann%20h%C3%A4tte%20ich%20mein%20Skript%20in%205%20Sekunden%20statt%20in%2020%20Minuten%20reparieren%20k%C3%B6nnen.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDanke!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEric%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22p2%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61984%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Versuch%20einer%20Zuweisung%20zu%20einem%20Objekt%2C%20das%20kein%20L-Wert%20ist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61984%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEin%20L-Wert%20ist%20ein%20Wert%2C%20der%20auf%20der%20linken%20Seite%20einer%20Zuweisungsanweisung%20erscheinen%20kann.%20Hier%20ist%20ein%20Beispiel%2C%20das%20dem%20%C3%A4hneln%20k%C3%B6nnte%2C%20was%20Sie%20versuchen%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20New%20Table(%20%22Untitled%22%2C%0A%20%20Add%20Rows(%205%20)%2C%0A%20%20New%20Column(%20%22sequenceSteps%22%2C%0A%20%20%20%20Numeric%2C%0A%20%20%20%20%22Continuous%22%2C%0A%20%20%20%20Format(%20%22Best%22%2C%2012%20)%2C%0A%20%20%20%20Set%20Values(%20%5B5%2C%203%2C%201%2C%202%2C%204%5D%20)%0A%20%20)%0A)%3B%0A%0ARow()%20%3D%201%3B%0A%0AFor(%20i%20%3D%201%2C%20i%20%26lt%3B%3D%2020%2C%20i%2B%2B%2C%0A%20%20Row()%20%3D%20dt%3AsequenceSteps%5BRow()%5D%3B%0A%20%20dt%20%26lt%3B%26lt%3B%20clearSelect%3B%0A%20%20dt%20%26lt%3B%26lt%3B%20selectrows(%20Row()%20)%3B%0A%20%20Print(%20Row()%20)%3B%0A%20%20Wait(%201%20)%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E5%3CBR%20%2F%3E%204%3CBR%20%2F%3E%202%3CBR%20%2F%3E%203%3CBR%20%2F%3E%201%3CBR%20%2F%3E%205%3CBR%20%2F%3E%204%3CBR%20%2F%3E%202%3CBR%20%2F%3E%203%3CBR%20%2F%3E%201%3CBR%20%2F%3E%205%3CBR%20%2F%3E%204%3CBR%20%2F%3E%202%3CBR%20%2F%3E%203%3CBR%20%2F%3E%201%3CBR%20%2F%3E%205%3CBR%20%2F%3E%204%3CBR%20%2F%3E%202%3CBR%20%2F%3E%203%3CBR%20%2F%3E%201%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Versuch%20einer%20Zuweisung%20zu%20einem%20Objekt%2C%20das%20kein%20L-Wert%20ist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61979%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EOkay%2C%20danke%2C%20ich%20habe%20die%20Reihenfolge%20der%20Anweisung%20wie%20folgt%20ge%C3%A4ndert%3A%20Row()%20%3D%20dt%3AsequenceSteps%5BRow()%5D%3B%3C%2FP%3E%3CP%3Eaber%20ich%20erhalte%20immer%20noch%20den%20gleichen%20Fehler.%20Soll%20ich%20Row()%20einer%20Variablen%20zuweisen%3F%20Ich%20verstehe%20immer%20noch%20nicht%20ganz%2C%20worum%20es%20geht.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61973%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Versuch%20einer%20Zuweisung%20zu%20einem%20Objekt%2C%20das%20kein%20L-Wert%20ist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61973%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDie%20Funktion%20Assign()%20ben%C3%B6tigt%20zwei%20Argumente%2C%20das%20linke%20und%20das%20rechte%2C%20wie%20sie%20beim%20Operator%20erscheinen.%20Ein%20Beispiel%20f%C3%BCr%20eine%20g%C3%BCltige%20Zuweisung%20ist%20x%20%3D%20Log(5).%20Ein%20Beispiel%20f%C3%BCr%20eine%20ung%C3%BCltige%20Zuweisung%20ist%20Log(5)%20%3D%20x.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jaz
Jaz
Level IV

Attempting to Assign to an Object That is not an L-Value

Hi, I'm getting this error.

 

"attempting to assign to an object that is not an L-value{1} in access or evaluation of 'Assign' , Row() & dt:sequence[Row() + 1] = Row() + 1"

 

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.

4 REPLIES 4

Re: Attempting to Assign to an Object That is not an L-Value

The 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. 

Jaz
Jaz
Level IV

Re: Attempting to Assign to an Object That is not an L-Value

Okay thanks, I changed the order of the statement to: Row() = dt:sequenceSteps[Row()];

but I'm still getting the same error. Should I assign Row() to a variable? Still don't quite understand what the issue is.

 

Craige_Hales
Super User

Re: Attempting to Assign to an Object That is not an L-Value

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:

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 <= 20, i++,
  Row() = dt:sequenceSteps[Row()];
  dt << clearSelect;
  dt << selectrows( Row() );
  Print( Row() );
  Wait( 1 );
);

5
4
2
3
1
5
4
2
3
1
5
4
2
3
1
5
4
2
3
1

Craige
Eric_Hill
Staff

Re: Attempting to Assign to an Object That is not an L-Value

I have a very simple example of this:  I have a table with a column named "Electrolyte Solution".  When I did this:

for each row(
	:Electrolye Solution = "Lot 5";
);

I got the error "attempting to assign to an object that is not an L-value".  Of course, I had left the "t" out of the column name.  You know what would have been super helpful?  An error message that said:

"Electrolye Solution" is not a valid column name.

Then, I could have fixed my script in 5 seconds instead of 20 minutes.

 

Thanks!

 

Eric

 

 

Recommended Articles