Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of Rem statement in VBS

Shulou Source: shulou.com Published: 2022-06-03 19:40:25 10月28日 Update

This article mainly explains "the usage of Rem sentence in VBS". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the use of Rem sentences in VBS".

Contains explanatory comments in the program.

Rem comment

Or

'comment

The comment parameter is the comment text that needs to be included. There should be a space between the Rem keyword and comment.

Description

As shown in the Syntax section, you can replace the Rem keyword with single quotation marks ('). If the Rem keyword and statement are on the same line, you need to separate them with a semicolon. However, if you use single quotes, you do not need to use semicolons between single quotes and statements.

The following example illustrates how to use the Rem statement:

Dim MyStr1, MyStr2MyStr1 = "Hello": Rem statements and comments are separated by colons. MyStr2 = "Goodbye" 'this is also a comment without a colon. Rem doesn't have to use colons to comment lines that don't have code. At this point, I believe you have a deeper understanding of "the use of Rem sentences in VBS". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Statements comments keywords keywords colons quotes between content semicolons learning practical deeper one line code examples interests parameters practicality practical simple operation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Information Apple Huawei NVidia