Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
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.
You’ve reached the end of your document
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.