Python Forum
Assigning iter_row value to variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assigning iter_row value to variable
#5
(Sep-18-2018, 04:48 PM)woooee Wrote: You have to post the complete error message to get some help. And post the code again if you have changed it, as there is no "occurances" in any of the code you posted.

occurances - I would hazard a guess - is the cell content
if int(row[1].value) == 1:
This will be safe
if str(row[1].value) == '1':
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Assigning iter_row value to variable - by ankey - Sep-18-2018, 03:45 PM
RE: Assigning iter_row value to variable - by ankey - Sep-18-2018, 04:35 PM
RE: Assigning iter_row value to variable - by volcano63 - Sep-18-2018, 04:53 PM
RE: Assigning iter_row value to variable - by ankey - Sep-18-2018, 07:48 PM
RE: Assigning iter_row value to variable - by ankey - Sep-19-2018, 12:27 PM
RE: Assigning iter_row value to variable - by ankey - Sep-24-2018, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Assigning a new value to variable uriel 1 1,691 Dec-04-2021, 02:59 PM
Last Post: Underscore
  assigning a variable :( gr3yali3n 0 1,395 Sep-22-2020, 09:02 PM
Last Post: gr3yali3n
  Assigning variables Godserena 4 2,357 Apr-26-2020, 06:59 AM
Last Post: buran
  Assigning a Variable Help MC2020 5 3,104 Jan-06-2020, 10:54 PM
Last Post: MC2020
  Assigning an item from a list xlev 1 1,538 Sep-27-2019, 04:42 PM
Last Post: Larz60+
  assigning index 3Pinter 6 3,184 Jan-18-2019, 10:07 PM
Last Post: nilamo
  Not adding and assigning? 00712411 7 4,472 Oct-10-2018, 07:11 PM
Last Post: volcano63
  Assigning a new variable in a IF loop pythoneer 5 3,958 Mar-02-2018, 05:21 AM
Last Post: pythoneer
  Assigning to string slice michaeljhuman 1 2,866 Feb-08-2018, 12:57 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020