| View previous topic :: View next topic |
| Author |
Message |
user
Joined: 05 Oct 2006 Posts: 476
|
Posted: Sun Apr 22, 2007 11:01 pm Post subject: how do I disable a line? using ; at the begining? |
|
|
hello
how do I disable a line? using ; at the begining?
thanks |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 555
|
Posted: Sun Apr 22, 2007 11:16 pm Post subject: Re: how do I disable a line? using ; at the begining? |
|
|
| user wrote: | hello
how do I disable a line? using ; at the begining?
thanks |
That is correct!
| Code: |
;MsgBox, You will not see this MsgBox.
MsgBox, You will see this MsgBox.
|
HTH... |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Mon Apr 23, 2007 9:25 am Post subject: |
|
|
Or by surrounding it with two lines: one with /*, the other with */. Better for lot of lines.
Or by preceding it by an always false conditional... |
|
| Back to top |
|
 |
user
Joined: 05 Oct 2006 Posts: 476
|
Posted: Tue Apr 24, 2007 5:20 pm Post subject: |
|
|
| Helpy wrote: | | Better for lot of lines. |
thats what I wanted
| Helpy wrote: | | Or by surrounding it with two lines: one with /*, the other with */. Better for lot of lines. |
thats very very interesting!
you mean like this?:
by the way, where is the reference for this?
thanks |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Tue Apr 24, 2007 5:23 pm Post subject: |
|
|
| user wrote: | you mean like this?:
|
or
| Code: |
/*
my
multi
line
code
here
*/
|
| user wrote: |
by the way, where is the reference for this?
|
in TFM _________________
(Common Answers) |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Tue Apr 24, 2007 9:13 pm Post subject: |
|
|
| user wrote: | you mean like this?:
| No, opening and closing parts must be on a line of their own, as engunneer shown. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
MsgBox
Joined: 17 Nov 2005 Posts: 181 Location: Leicester, UK
|
Posted: Tue Apr 24, 2007 11:50 pm Post subject: |
|
|
This works too, I saw it in a script recently:
I don't think its documented though. |
|
| Back to top |
|
 |
user
Joined: 05 Oct 2006 Posts: 476
|
Posted: Wed Apr 25, 2007 12:40 am Post subject: |
|
|
| MsgBox wrote: | This works too, I saw it in a script recently:
I don't think its documented though. |
does it support multiline code? |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Wed Apr 25, 2007 5:44 am Post subject: |
|
|
MsgBox, this is only assigning lines of code to the _ variable (so you can use also #=, like lot of Unix scripts!).
It works, but still consumes CPU and memory, so you better use ;
user, semi-colon can be used to disable multiple lines of code: just put one at the start of each line.
Good editors, like SciTE, allows to select a bunch of lines and with a keystroke you comment them out. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|