diff --git a/components/rx/trunk/docs/rxapputils.xml b/components/rx/trunk/docs/rxapputils.xml index dfe3b7259..164fbe8fa 100644 --- a/components/rx/trunk/docs/rxapputils.xml +++ b/components/rx/trunk/docs/rxapputils.xml @@ -12,6 +12,11 @@ Текст предупрежедения Текст сообщения об ошибке + Check value is integer + function return current keyboard layout name + init handlers for rx loging functions + return default logfile name + diff --git a/components/rx/trunk/rxcontrols/rxapputils.pas b/components/rx/trunk/rxcontrols/rxapputils.pas index 9aba89578..060843968 100644 --- a/components/rx/trunk/rxcontrols/rxapputils.pas +++ b/components/rx/trunk/rxcontrols/rxapputils.pas @@ -100,6 +100,7 @@ procedure InitRxLogs; function RxGetKeyboardLayoutName:string; function RxMessageBeep(AStyle:TRxMsgBeepStyle):boolean; +function rxIsValueInteger(AValue:string):boolean; implementation uses @@ -318,6 +319,15 @@ begin {$ENDIF} end; +function rxIsValueInteger(AValue: string): boolean; +var + V:Int64; + C:integer; +begin + Val(AValue, V, C); + Result:=C = 0; +end; + function GetDefaultSection(Component: TComponent): string; var