Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CodePage Property

Visual Studio .NET 2003

Contains the code page of a file in a project. Read-only at design time and run time.

Object.CodePage

Remarks

The code page is a numeric value indicating the character set used for the file. Code pages usually correspond to different platforms and languages and are used in international applications.

Example

This example counts how many project files are using code page 1252 (ANSI Windows).

nCode1252=0
MODIFY PROJECT myproject NOWAIT
FOR i = 1 TO _VFP.ActiveProject.Files.Count
   IF  _VFP.ActiveProject.Files(i).CodePage = 1252
      bCode1252=nCode1252+1
   ENDIF
ENDFOR
?nCode1252    && Show the count in the Visual FoxPro screen.

See Also

CPCONVERT( ) Function | CPCURRENT( ) Function | CPDBF( ) Function

Applies To: File Object

Show:
© 2015 Microsoft