Author Topic: := operator  (Read 529 times)

0 Members and 1 Guest are viewing this topic.

jcfuller

  • Full Member
  • ***
  • Posts: 144
:= operator
« on: February 25, 2018, 01:26:52 PM »
Charles,
  What is the := operator?
Help file does not have a listing.
James

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 3980
    • Oxygen Basic
Re: := operator
« Reply #1 on: February 25, 2018, 04:21:32 PM »
:= is an assignment operator which can be used inside a conditional expression, disinct from '=' as an equality operator.

Typical use:
Code: [Select]
    while bRet := GetMessage @wm, 0, 0, 0

       if bRet == -1 then
       '  show an error message
       ...