Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing source code from one CP to another ? 1

Status
Not open for further replies.

andrej67

IS-IT--Management
Jan 23, 2007
14
SI
My native CP is 1250 (East European) and i've noticed, some of my source code is in CP 1252 (West European). Is there a way to change the "source code" code page from 1252 to 1250? I can't do this from within Project/Project info window since "Code page" option is disabled.

Thank you for any idea,
Andrej
 
Andrej,

Are you talking about the code page assigned to PRG files?

If so, open the file in the code editor, then choose File / Save As, then click the Code Page button and pick the new code page.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,

PRG files are OK, i'm having problems with forms (scx files). If i enter a string in my native CP in gets converted into 1252 after i save the code.
 
Andrej,

I don't know any specific way of changing a code page for a SCX. However, given that an SCX file is really a DBF with a different extension, I'd guess that you could simply copy it to a new file, specifying the code page as you do so.

For example:

USE MyForm.SCX
COPY TO MyNewForm.SCX AS 1250

Then delete MyForm and rename MyNewForm.

That said, I don't know how the process would affect the compiled code within the form. So, be sure to take a backup before trying this. And perhaps also compile the form afterwards.

Let me know if this works.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike, thanks for valuable lesson how things can be solved if you look at them from the right perspective. Oh yeah, it works.

Andrej
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top