Home › Forums › Bug Reports and Feature Requests › TypeError: "slice" is not a function w/ text puzzle "get letter"
- This topic has 4 replies, 2 voices, and was last updated 5 years, 12 months ago by
Yuri Kovelenov.
-
AuthorPosts
-
2019-10-29 at 8:10 am #20765
GLiFTeKCustomerVerge 3D Version 2.16.0pre2
Browser/operating system: Firefox 70.0 (64-bit) / Windows 8.1
What steps will reproduce the problem? using “text puzzle – get letter”
What is the expected result? using the LAST LETTER drop down option in the puzzle (haven’t tried others) should manifest the last letter of the variable’s string value. (also have used “variable value by name” puzzle in conjunction to no avail)
What happens instead? App freezes.
message in console reads “TypeError: current_item.slice is not a function”
debugger brings up “slice(-1)));”
(current_item is a variable I use)Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2019-10-29 at 9:25 am #20769
Yuri KovelenovStaff2019-10-29 at 12:19 pm #20771
GLiFTeKCustomermight be that your variable does not contain a String value?
ok that makes sense with that one. i will try it differently.
EDIT: wait no i thought you meant something else.. yes it’s a string.. text… it’s not a number.but i’m testing a different version of it with the puzzle setup with 3 parses, one for year one for month one for day using the format NNYYYYMMDD where NN is alphabetical prefix
only the YEAR is coming through in the final “create text with” result.
each one is slicing from certain ranges. (from #_ to #_) etc…the month and day should work the same as the year.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2019-10-30 at 12:25 am #20788
GLiFTeKCustomerok i actually had the digits i was setting off by one. forgot they start at 0
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2019-10-30 at 8:53 am #20836
Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.
