Hi,
Like you, I thought, that is pretty odd, but you seem correct anyway. Nonetheless, there's an argument to be made against packing all sorts of superfluous operations in a programming language (like VBA), if you're not using them and are easily able to add them yourself. So, just add to your user script:
Function min(inx As Variant, iny As Variant) As Variant
If inx < iny Then min = inx Else min = iny
End Function
Now, writing
TextDisplay1.Text = min(5,3)
for example, will show "3". Rock on, no?
Best,
Mich
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/vVI7xbobw3YJ.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
Hi,
It can be really quite useful to clean up some code, especially if you write a lot of these long statements. I also use it a lot for the code-intensive parts i reuse between experiments, such as making random noise masks with some canvas-code because, quite often, I am really just too lazy to look up exactly how one goes about doing these things.
Cheers,
Mich