Function

OkFloatValue

Module

fLabs

Last Modified

7/15/2014 3:26:38 PM

Scope

Local

Local subprogram to

WorksheetChart

Declaration

function OkFloatValue(value: string): boolean;

Called-By Hierarchy


                                                 OkFloatValue
                                    TfrmLabs.WorksheetChart┘ 
                               TfrmLabs.lstTestGraphClick┘   
                                  TfrmLabs.ragCorGClick┘     
                           TfrmLabs.lstQualifierClick┤       
                            TfrmLabs.tvReportsClick┘ │       
                             TfrmLabs.DisplayPage┤   │       
                            TfrmLabs.LoadTreeView┤   │       
                           TfrmLabs.DisplayPage┤ │   │       
         TfrmOptionsReportsCustom.btnApplyClick┘ │   │       
          TfrmOptionsReportsCustom.btnOKClick┘   │   │       
                      TfrmLabs.cmdOtherTestsClick┤   │       
                         TfrmLabs.chkMaxFreqClick┤   │       
                    TfrmLabs.ProcessNotifications┤   │       
                           TfrmLabs.DisplayPage┘ │   │       
                                        ..(rec)..┤   │       
                        TfrmLabs.tvReportsKeyDown┤   │       
                  TfrmFrame.lstCIRNLocationsClick┘   │       
                            TfrmFrame.SetUpCIRN┘     │       
                       TfrmFrame.SetupPatient┘       │       
                  UpdatePatientInfoForAlert┤         │       
               TfrmFrame.mnuFileNextClick┘ │         │       
             TfrmFrame.mnuFileOpenClick┤   │         │       
                 TfrmFrame.UMInitiate┤ │   │         │       
        TfrmFrame.mnuFileNextClick...┤ │   │         │       
        TfrmFrame.mnuFileRefreshClick┤ │   │         │       
        TfrmOrders.CheckOrderStatus┤ │ │   │         │       
    TfrmOrders.mnuActChgEvntClick┤ │ │ │   │         │       
       TfrmOrders.mnuActHoldClick┤ │ │ │   │         │       
     TfrmOrders.mnuActUnholdClick┤ │ │ │   │         │       
      TfrmOrders.mnuActRenewClick┤ │ │ │   │         │       
     TfrmOrders.mnuActChangeClick┤ │ │ │   │         │       
       TfrmOrders.mnuActCopyClick┘ │ │ │   │         │       
             TfrmMeds.mnuActDCClick┤ │ │   │         │       
            TfrmMeds.CheckMedStatus┘ │ │   │         │       
         TfrmMeds.mnuActHoldClick┤   │ │   │         │       
        TfrmMeds.mnuActRenewClick┤   │ │   │         │       
       TfrmMeds.mnuActUnholdClick┤   │ │   │         │       
       TfrmMeds.mnuActChangeClick┤   │ │   │         │       
         TfrmMeds.mnuActCopyClick┤   │ │   │         │       
       TfrmMeds.mnuActRefillClick┘   │ │   │         │       
                   TfrmFrame.ViewInfo┘ │   │         │       
                TfrmDCSumm.ViewInfo┤   │   │         │       
              TfrmConsults.ViewInfo┤   │   │         │       
      TfrmFrame.pnlRemindersMouseUp┤   │   │         │       
       TfrmFrame.RemindersChanged┘ │   │   │         │       
           TfrmFrame.FormCreate┘   │   │   │         │       
             TfrmFrame.pnlCIRNClick┤   │   │         │       
       TfrmFrame.pnlVistaWebClick┤ │   │   │         │       
            TfrmFrame.FormKeyDown┘ │   │   │         │       
          TfrmFrame.pnlPatientClick┤   │   │         │       
            TfrmFrame.pnlVisitClick┤   │   │         │       
      TfrmFrame.pnlPrimaryCareClick┤   │   │         │       
        TfrmFrame.pnlRemindersClick┤   │   │         │       
         TfrmFrame.pnlPostingsClick┤   │   │         │       
             TfrmFrame.pnlFlagClick┤   │   │         │       
               TfrmFrame.laMHVClick┤   │   │         │       
              TfrmFrame.laVAA2Click┤   │   │         │       
                TfrmOrders.ViewInfo┤   │   │         │       
                  TfrmMeds.ViewInfo┤   │   │         │       
               TfrmSurgery.ViewInfo┤   │   │         │       
                 TfrmNotes.ViewInfo┤   │   │         │       
              TfrmProblems.ViewInfo┘   │   │         │       
      TfrmFrame.mnuFileNotifRemoveClick┤   │         │       
              TfrmFrame.NextButtonClick┘   │         │       
            TfrmFrame.SetUpNextButton┘     │         │       
      TfrmFrame.mnuFileOpenClick...┤       │         │       
               TfrmFrame.FormResize┘       │         │       
             TfrmFrame.ChangeFont┘         │         │       
     TfrmFrame.LoadSizesForUser┤           │         │       
TfrmFrame.LoadUserPreferences┘ │           │         │       
       TfrmFrame.UMInitiate┘   │           │         │       
     TfrmFrame.mnuFontSizeClick┘           │         │       
              TfrmFrame.mnuFileOpenClick...┤         │       
           TfrmFrame.AllowCCOWContextChange┤         │       
            TfrmFrame.mnuFileNextClick...┤ │         │       
            TfrmFrame.mnuFileOpenClick...┤ │         │       
   TfrmFrame.mnuFileResumeContextSetClick┘ │         │       
                TfrmFrame.UpdateCCOWContext┤         │       
            TfrmFrame.mnuFileOpenClick...┤ │         │       
          TfrmFrame.ctxContextorCommitted┤ │         │       
           TfrmFrame.StartCCOWContextor┘ │ │         │       
                 TfrmFrame.FormCreate┘   │ │         │       
   TfrmFrame.mnuFileResumeContextGetClick┘ │         │       
     TfrmFrame.mnuFileResumeContextSetClick┘         │       
                               TfrmLabs.lstDatesClick┘       
                         TfrmLabs.tvReportsClick...┘         

Called-By

Name Declaration Comments
TfrmLabs.WorksheetChart procedure WorksheetChart(test: string; aitems: TStrings); -


Source

2228  function OkFloatValue(value: string): boolean;
2229  var
2230    i, j: integer;
2231    first, second: string;
2232  begin
2233    Result := false;
2234    i := strtointdef(value, -99999);
2235    if i <> -99999 then Result := true
2236    else if pos('.', Copy(Value, Pos('.', Value) + 1, Length(Value))) > 0 then Result := false
2237    else
2238    begin
2239      first := Piece(value, '.', 1);
2240      second := Piece(value, '.', 2);
2241      if length(second) > 0 then
2242      begin
2243        i := strtointdef(first, -99999);
2244        j := strtointdef(second, -99999);
2245        if (i <> -99999) and (j <> -99999) then Result := true;
2246      end
2247      else
2248      begin
2249        i :=strtointdef(first, -99999);
2250        if i <> -99999 then Result := true;
2251      end;
2252    end;
2253  end;