<< Return to Main Index

< Return to Class Index

GXDeval

BOOL GXDeval(LPCTSTR s, double *d, unsigned* pImportFormat = NULL, unsigned* pImportPlaces = NULL);

s

Points to the string with the text to be parsed.

d

A pointer through which the numeric value will be returned.

pImportFormat

If not NULL, GXDeval will store the import format here. See CGXStyle::SetFormat for possible formats.

pImportPlaces

If not NULL, GXDeval will store the number of places here. See CGXStyle::SetFormat.

Return Value

TRUE if the string is a number or date string; FALSE if it is only plain text.

Remarks

This method parses a given string and checks if it is a number, date string or plain text and returns the numeric value of the date or number.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXDrawingAndFormatting::ImplementNumberFormatting method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXStyle::SetFormat CGXDrawingAndFormatting

Macros

Class Overview | Class Members