Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

cxTextToMinutes(string,Integer) Method

Converts the AText into an AMinutes numeric representation.

#Declaration

Delphi
function cxTextToMinutes(const AText: string; out AMinutes: Integer): Boolean;

#Parameters

Name Type
AText string
AMinutes Integer

#Returns

Type
Boolean

#Remarks

The cxTextToMinutes function parses the AText string to determine the unit of time measurement. If the time unit determined is different than the minute unit (the function can recognize hour, day and week units) then it converts the given amount of time into minutes.

For example, if the ‘2 weeks‘ or ‘2w‘ string is passed in then a value of 20160 is assigned to the AMinutes parameter.

The function returns a value of True if the conversion was successful.

See Also