Title: ClearScript execution of VBS code does not support ByRef parameter passing · Issue #511 · ClearFoundry/ClearScript · GitHub
Open Graph Title: ClearScript execution of VBS code does not support ByRef parameter passing · Issue #511 · ClearFoundry/ClearScript
X Title: ClearScript execution of VBS code does not support ByRef parameter passing · Issue #511 · ClearFoundry/ClearScript
Description: VBS CODE: Option Explicit Sub Main dim reftest reftest=0 zp.testRef 5,reftest zp.print reftest End Sub Main VB.NET CODE: Public Class VBClass Public Sub Print(ByVal OutStr As Object, ByVal Optional iShow As Integer = 1) Console.WriteLine...
Open Graph Description: VBS CODE: Option Explicit Sub Main dim reftest reftest=0 zp.testRef 5,reftest zp.print reftest End Sub Main VB.NET CODE: Public Class VBClass Public Sub Print(ByVal OutStr As Object, ByVal Optional...
X Description: VBS CODE: Option Explicit Sub Main dim reftest reftest=0 zp.testRef 5,reftest zp.print reftest End Sub Main VB.NET CODE: Public Class VBClass Public Sub Print(ByVal OutStr As Object, ByVal Optional...
Opengraph URL: https://github.com/ClearFoundry/ClearScript/issues/511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ClearScript execution of VBS code does not support ByRef parameter passing","articleBody":"VBS CODE:\r\nOption Explicit\r\nSub Main\r\n\tdim reftest\r\n\treftest=0\r\n\tzp.testRef 5,reftest\r\n\tzp.print reftest\r\n\t\r\nEnd Sub\r\nMain\r\nVB.NET CODE:\r\nPublic Class VBClass\r\n Public Sub Print(ByVal OutStr As Object, ByVal Optional iShow As Integer = 1)\r\n Console.WriteLine(\"OutStr: \" \u0026 OutStr \u0026 \"!\")\r\n End Sub\r\n\r\n Public Sub testRef(ByVal OutStr As Integer, Optional ByRef iShow As Integer= 0)\r\n iShow = iShow + OutStr\r\n Console.WriteLine(\"testRef: \" \u0026 iShow \u0026 \"!\")\r\n End Sub\r\nEnd Class\r\n\r\nC# Code:\r\nprivate void button10_Click(object sender, EventArgs e)\r\n {\r\n var VBscript = new VBClass();\r\n using (var engine = new VBScriptEngine())\r\n {\r\n engine.AddHostObject(\"zp\", VBscript);\r\n var scriptCode = File.ReadAllText(\"D:/Script/abc.vbs\");\r\n engine.Execute(scriptCode);\r\n\r\n }\r\n\r\n }\r\n\r\n","author":{"url":"https://github.com/Rison-Hub","@type":"Person","name":"Rison-Hub"},"datePublished":"2023-05-11T10:56:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/511/ClearScript/issues/511"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3f5e8ba-1ca2-2930-2c6b-a202e2a3f0cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D798:9445B:169BEA2:1F24BCD:696AA805 |
| html-safe-nonce | 0de72cbb74689ac4aa03d3166dcf9e9c6d5a660ad22aa948278d28146a545924 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzk4Ojk0NDVCOjE2OUJFQTI6MUYyNEJDRDo2OTZBQTgwNSIsInZpc2l0b3JfaWQiOiIxODEwNzU3NDU3ODQ3OTUzNDEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5724ef8db1339f9311080a7dfda8699dba5f538317aa228fc5701a3df4596bb5 |
| hovercard-subject-tag | issue:1705570813 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ClearFoundry/ClearScript/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95aa8a3cff8cdc8c91177d217ecce1ad05c63ff12370b2f91a4e8c593df68ae1/ClearFoundry/ClearScript/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95aa8a3cff8cdc8c91177d217ecce1ad05c63ff12370b2f91a4e8c593df68ae1/ClearFoundry/ClearScript/issues/511 |
| og:image:alt | VBS CODE: Option Explicit Sub Main dim reftest reftest=0 zp.testRef 5,reftest zp.print reftest End Sub Main VB.NET CODE: Public Class VBClass Public Sub Print(ByVal OutStr As Object, ByVal Optional... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Rison-Hub |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/ClearFoundry/ClearScript git https://github.com/ClearFoundry/ClearScript.git |
| octolytics-dimension-user_id | 232231756 |
| octolytics-dimension-user_login | ClearFoundry |
| octolytics-dimension-repository_id | 90258367 |
| octolytics-dimension-repository_nwo | ClearFoundry/ClearScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90258367 |
| octolytics-dimension-repository_network_root_nwo | ClearFoundry/ClearScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width