hope: for If, add =(),>(),<(),>=(),<=(),<>()
hope: for If, add =(),>(),<(),>=(),<=(),<>()
hope: for If, add =(),>(),<(),>=(),<=(),<>()
Example:
If a=(b Or c) ;parity:
If a=b Or a=c
Example:
If a=(b Or c) ;parity:
If a=b Or a=c
my pb for chinese:
http://ataorj.ys168.com
http://ataorj.ys168.com
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
If its even an option. I've seen this in scripting languages way back when I started on Internet in the late 1990's.
When I started working with PB, really missed such conveniences. I actually still do miss..
+1 for me
...edit: I actually want to give it +1000 to actually get the ball rolling.
When I started working with PB, really missed such conveniences. I actually still do miss..
+1 for me

...edit: I actually want to give it +1000 to actually get the ball rolling.

ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
v5.40 no
but sorry, v5.41 ok
but sorry, v5.41 ok
my pb for chinese:
http://ataorj.ys168.com
http://ataorj.ys168.com
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
That turns into unreadable code...
Code: Select all
procedure orEqs(a.s, b.s, c.s)
if a=b or a=c
procedureReturn True
endif
procedureReturn False
endProcedure ; orEqs(a.s, b.s, c.s)
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
Looks like a nice shortcut:
Not sure it makes sense with <() and >() etc.?
Code: Select all
; PB today
If theVariable=123 Or theVariable=456 Or theVariable=789
; Do something
EndIf
; Operator =()
If theVariable=(123 Or 456 Or 789)
; Do something
EndIf
Code: Select all
If theVariable>(123 Or 456 Or 789)
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
pb not enlist them all now.
but
Code: Select all
;a=8:b=8
If a=(b Or d):Debug 8:EndIf;show 8
Code: Select all
a=8:b=8
If a=(b Or d):Debug 8:EndIf;show no
my pb for chinese:
http://ataorj.ys168.com
http://ataorj.ys168.com
- langinagel
- Enthusiast
- Posts: 131
- Joined: Fri Jan 28, 2005 11:53 pm
- Location: Germany
- Contact:
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
Hi,
I do have objections against these shortcuts.
All kind of Software Quality literature plead for strict style guides to restrict these shortcuts that decrease the readability of the code.
So if we do not have these shortcuts, the readability and the better understanding is given, thus code reviews have less objections.
Maybe this view will not be shared by the majority....
Greetings
LN
I do have objections against these shortcuts.
All kind of Software Quality literature plead for strict style guides to restrict these shortcuts that decrease the readability of the code.
So if we do not have these shortcuts, the readability and the better understanding is given, thus code reviews have less objections.
Maybe this view will not be shared by the majority....
Greetings
LN
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
i requested this years ago, without the ( ) though:
its basically like a more flexible Select:Case.
c ya,
nco2k
Code: Select all
If Foo = 1, 2, 34 To 56, 78 Or Bar = 9
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: hope: for If, add =(),>(),<(),>=(),<=(),<>()
ncp2k: good idea.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system