Strange though. The consp means the function expects a list (not a number), like in the result of using the cons function. Is the +1 function some custom function in your system perhaps?
Both the + and the 1+ would give you an error of:Command: (1+ "A-12345")
; error: bad argument type: numberp: "A-12345"
Command: (+ 1 "A-12345")
; error: bad argument type: numberp: "A-12345"
Notice: numberp, not consp.
got it all sorted out.
the + 1 is just the math part, im adding 1 to the number.
i totally ignored that it was a list that i converted to a string to add 1.
i had to convert it to an integer to add 1, then convert it to list.
instead of converting it to a list i was converting it to a string when the code was looking for a list.
thanks for everyones replies.