Function CtoN() Foundation

Converts a string to an integer of the specified base.

Syntax
CtoN( <cDigits>           , ;
      [<nBase>]           , ;  // Default: 10
      [<lNegativeNumbers>]  ;  // Default: .F.
    ) --> nInteger
Description

<cDigits> is the string to be converted. It may contain all characters which are allowed for the specified base. For example, if <nBase> is 16 the characters "0123456789ABCDEF" are allowed. The range for <nBase> is 2 to 32. When <lNegativeNumbers> is set .T. the function considers a minus sign.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.