Author Topic: := operator  (Read 1252 times)

0 Members and 1 Guest are viewing this topic.

jcfuller

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

Charles Pegge

  • Guest
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
       ...