EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-26 03:51 PM . Last Modified: 2023-05-03 12:08 AM
Hi Guy's,
I don't think there is. However, I may stand corrected.
Which would be a good thing in this case.
With Geo SCADA VB can you convert a string into a long?
CLng does not seem to exist.
Also, is there another way?
Thanks,
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-26 04:34 PM
Assuming you're talking scripting on mimics, it is just normal VBScript (it is using the ActiveScript engine provided by Microsoft), the development team just add a few objects (like Server) for you to use.
CLng should work fine.
Option Explicit
Public Sub DoMaths
MsgBox(CLng("1") + CLng("2"))
End Sub
The above code shows 3, whereas if it was treated as a string it would show 12 (and I would have better used & instead of + for a string concatenation to avoid ambiguity, but that's a different issue)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-10-26 04:34 PM
Assuming you're talking scripting on mimics, it is just normal VBScript (it is using the ActiveScript engine provided by Microsoft), the development team just add a few objects (like Server) for you to use.
CLng should work fine.
Option Explicit
Public Sub DoMaths
MsgBox(CLng("1") + CLng("2"))
End Sub
The above code shows 3, whereas if it was treated as a string it would show 12 (and I would have better used & instead of + for a string concatenation to avoid ambiguity, but that's a different issue)
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.