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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with default setting to capitalize key words

igorsandler

Programmer
Feb 22, 2024
36
US
Hello fellow programmers. A bit embarrassed but will try it anyway. We are using FoxPro7 and I am having an issue with default capitalization of key words, like TRANSFORM() or ALLTRIM(). They keep showing up in low cases and, for the life of me, I can't find the default setting. Can't find it in OPTIONS( seems like Editor but nothing there, unless I've missed it). Tried IntelliSense ,didn't work.

Any advice?
 
This is VFP9:
Tools > Beautify > Capitalization dropdown to select what case you want.
 
Intellisense Manager is where you set this.

It won't ever affect how code looks when you paste it into an editor, it will affect how code is capitalized when you type it. Beautify settings can also override that, when you beautify code, i.e. the Bautify Capitalization will rewrite keywords as you define it there. One of the dropdown options you have there is "No change", though. So you can tell beutify to not override what intellisense has done up to the beautification.
 
Last edited:
hmm. VFP7 is from 2001.
Why have you never switched to VFP9 over the last 20 years?
You're mising so much funcionality.
 
This is VFP9:
Tools > Beautify > Capitalization dropdown to select what case you want.
Thank you but this is not what I was looking for. I was talking to capitalize by default. If I type alltrim and open parenthesis, it used to capitalize to ALLTRIM(. Doesn't do it anymoer.
 
hmm. VFP7 is from 2001.
Why have you never switched to VFP9 over the last 20 years?
You're mising so much funcionality.
Well, when I will own the company I work for :), I will do it. For now I just work there
 
Last, not least: Foxcode.dbf contains the data abot what abbreviation code expands to the long commands/function names and Mixed Case aka CamelCase. You could, for example, change the record of Strtran to StrTran and Strconv to StrConv to adapt this to your own individual style.
 
Intellisense Manager is where you set this.

It won't ever affect how code looks when you paste it into an editor, it will affect how code is capitalized when you type it. Beautify settings can also override that, when you beautify code, i.e. the Bautify Capitalization will rewrite keywords as you define it there. One of the dropdown options you have there is "No change", though. So you can tell beutify to not override what intellisense has done up to the beautification.

Chris, that's what I thought but it doesn't do it. Here is what I got:
1744748343821.png

And it still doesn't do it
 
Igor, look at my answer, too: Intellisense Manager determines that.
Chris, have you seen the snapshot I sent to you? Does it look correctly to you? Because it doesn't work. I am typing some code inside the program
 
CD HOME() and USE FOXCODE && <--corrected typo
Check, whether you have a corrupt foxcode.dbf or foxuser.dbf

You could also try to Disable Intellisense, close with OK, then go back and Enable Intellisense again.
IIRC VFP7 also made a difference in the command window vs editor windows, i.e. intellisense didn't kick in at the command window.
 

Part and Inventory Search

Sponsor

Back
Top