Results 1 to 2 of 2

Thread: Flags

  1. #1
    Jean Withers Guest

    Default Flags

    Anyone know of info on &#039Flags&#039? - apparently used to flag wrongly filled in data in an input form.<BR><BR>Thanks, Jean Withers

  2. #2
    SPG Guest

    Default RE: Flags

    Last time I looked, "flag" was jargon for marking a variable (boolFlag5 = true) so that you can know from the variable whether or not an event has occurred, regardless of when.<BR><BR>Generally, it&#039s easiest to just handle the event when it occurs, but sometimes the flag can be used for something else.<BR><BR>Example:<BR> varValue = getUnknownValue(XYZ)<BR> &#039 If XYZ doesn&#039t go through, getUnknownValue returns empty.<BR> if isEmpty(varValue) then <BR> xyzExists = false &#039integer value of 0<BR> else<BR> xyzExists = cInt(varValue)<BR> end if<BR><BR>xyzExists is now a flag telling me if xyzExists *and*, if it does exist, will tell me what value xyz has.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts