Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ The ABL-specific scopes produced by the ABL grammar listed in the table below. T
|storage.type.function.abl | `defined` keyword and preprocessor directives like `&message` |
|string.quoted.double.abl | String in `"` quotes |
|string.quoted.single.abl | String in `'` quotes |
|support.function.abl | `opsys`, `proversion`, ABL functions (eg `base64-encode`) |
|support.function.abl | `opsys`, `proversion`, ABL functions (eg `base64-encode`). Note that `TRANSACTION` in a `FOR EACH` statement will be scoped this way |
|support.other.abl | Translation attributes `:L`, `:R`, `:T`, `:C`, `:U` |
|support.other.argument.abl | `&<name\|number>` arguments in includes |
|variable.language.abl | ABL system handles (eg `session` or `this-object`) |
Expand Down
24 changes: 24 additions & 0 deletions WithAnd.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class WithAnd:

define temp-table tt no-undo
field f1 as char
field f2 as char
field f3 as char.

method protected logical And(plArg as logical):
message 'arg=' plarg.
end method.

constructor public WithAnd():
FIND tt WHERE tt.f1 = "a"
AND (tt.f2 = "b" OR tt.f2 = "c")
AND tt.f3 = "d"
NO-LOCK NO-ERROR.

message
this-object:And(yes) skip
this-object:And(available tt)
view-as alert-box.
end.

end class.
Loading