Forum Discussion
cunderw
10 years agoCommunity Hero
As mentioned in your other post:
https://www.harding.edu/fmccown/scriptcompare.html
That's a good guide for converting a VBScript to JScript.
jloyzagawh
10 years agoContributor
I've read that and it does not have an equivalent for .Find - looked everywhere
- dbattaglia10 years agoContributor
it looks like this function is vba. did you look that up? this might help https://msdn.microsoft.com/en-us/library/office/ff839746.aspx
- jloyzagawh10 years agoContributor
Yes its vba it seems - is there a jscript way of doing the same?
- NisHera10 years agoValued Contributor
The with statement in VBS can be used in such a way as
With MyLabel .Height = 2000 .Width = 2000 .Caption = "This is MyLabel" End With
So the .Find is not a function of VBS but a method in your object "oSearchResult" or simply TC function of Find
Hence in JS you can write oSearchResult.Find(.........)