Ignore:
Timestamp:
Jun 10, 2010, 3:13:12 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/uTMGOptions.pas

    r735 r793  
    4141    RPCBrokerV.Param[1].Value := 'R';
    4242    RPCBrokerV.Param[1].ptype := literal;
    43     //RPCResult := RPCBrokerV.StrCall;   {returns 1 if available, 0 if not available}
    44     USE_SERVER_INI := StrToBool(RPCBrokerV.StrCall);
     43    //RPCResult := RPCBrokerV.StrCall;
     44    CallBroker;
     45    if RPCBrokerV.Results.Count >0 then begin
     46      USE_SERVER_INI := StrToBool(RPCBrokerV.Results.Strings[0]);  {returns 1 if available, 0 if not available}
     47    end else begin
     48      USE_SERVER_INI := false;
     49    end;
    4550    Initialized := true;
    4651  end;
     
    5560    RPCBrokerV.Param[2].Value := Value;
    5661    RPCBrokerV.Param[2].ptype := literal;
    57     RPCBrokerV.Call;
     62    //RPCBrokerV.Call;
     63    CallBroker;
    5864  end;
    5965
     
    6773    RPCBrokerV.Param[2].ptype := literal;
    6874    RPCBrokerV.param[2].value := Default;
    69     Result := Piece(RPCBrokerV.StrCall,'^',2);
     75    //Result := Piece(RPCBrokerV.StrCall,'^',2);
     76    CallBroker;
     77    if RPCBrokerV.Results.Count > 0 then begin
     78      Result := Piece(RPCBrokerV.Results.Strings[0],'^',2);
     79    end else begin
     80      Result := Default;
     81    end;
    7082  end;
    7183
     
    94106  Procedure WriteInteger(const Key: String; Value: Integer; AsDefault : boolean = false);
    95107  begin
    96     if Initialized = False then TMGOptionsInitialize;
     108   if Initialized = False then TMGOptionsInitialize;
    97109    if AsDefault then begin
    98110      if USE_SERVER_INI then begin
Note: See TracChangeset for help on using the changeset viewer.