Changeset 793 for cprs/branches/tmg-cprs/CPRS-Chart/uTMGOptions.pas
- Timestamp:
- Jun 10, 2010, 3:13:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/uTMGOptions.pas
r735 r793 41 41 RPCBrokerV.Param[1].Value := 'R'; 42 42 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; 45 50 Initialized := true; 46 51 end; … … 55 60 RPCBrokerV.Param[2].Value := Value; 56 61 RPCBrokerV.Param[2].ptype := literal; 57 RPCBrokerV.Call; 62 //RPCBrokerV.Call; 63 CallBroker; 58 64 end; 59 65 … … 67 73 RPCBrokerV.Param[2].ptype := literal; 68 74 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; 70 82 end; 71 83 … … 94 106 Procedure WriteInteger(const Key: String; Value: Integer; AsDefault : boolean = false); 95 107 begin 96 108 if Initialized = False then TMGOptionsInitialize; 97 109 if AsDefault then begin 98 110 if USE_SERVER_INI then begin
Note:
See TracChangeset
for help on using the changeset viewer.