I tried loading my big Mayflower project into Snap!7 but it came up with errors
I've narrowed it down to this issue
This code (slight edit due to mistook)
lets me access the name of the supplied variable to custom block as well as its value
Is there a another way of doing this in Snap!7 (no JS) as it was using a side-effect feature that no longer works
https://snap.berkeley.edu/versions/previous/snap.html#present:Username=cymplecy&ProjectName=getVarName&editMode
Came up with this awful method - make the var an upvar and then change its name to the name of variable I'm interested in, prefixed by a single char (can be anything)
It works but it's a very bad hack!
ProjectName=getVarName7a
how did you download or go on the webesite that has snap7
Unfortunately, the join input list doesn't return the name of supplied variable - it returns the internal var name
dardoro
December 13, 2021, 10:29am
8
For me it seems OK: present:Username=dardoro&ProjectName=VarName
There is no need to ringify "v".
It doesn't work for me when inside a custom block
This might be working - looks hopeful
Yep - seems to work in both 6.9 and 7 - thanks very much
ProjectName=getVarNameC
system
Closed
January 12, 2022, 11:02am
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.