CAPTURING CONTENT/VALUE


RadCORE has hundreds of attributes that can be manipulated or attributes/parameters that you create.


Ex: 

labIcon.Hint := '[[ico:fas-search]]';


cTmp := rc_GetHintAttr( 'ico:', labIcon.Hint );


The result will be "fas-search".



Now let's use a more complex example and explore the function's parameters:



edInputSpin.Hint := '[[input-addon:spin step:1 min:0 max:10]]';



Returning the contents of a statement:


cTmp := rc_GetHintAttr( 'input-addon:', edInputSpin.Hint );


The result will be "spin step:1 min:0 max:10".



Returning the content until it finds a " "(space):


cTmp := rc_GetHintAttr( 'input-addon:', edInputSpin.Hint, false, false, true );


The result will be "spin".



Returning the contents of a parameter within a statement:


cTmp := rc_GetHintAttr( 'step:', edInputSpin.Hint, true );


The result will be "1".



Returning the entire remainder of a statement from the contents of a parameter:


cTmp := rc_GetHintAttr( 'step:', edInputSpin.Hint, true, true );


The result will be "1 min:0 max:10".


Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?