Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Adding Fields into SCX. HELP ME, PLZ!

Adding Fields into SCX. HELP ME, PLZ!

Adding Fields into SCX. HELP ME, PLZ!

Hi guys,

I am using FoxPro For Windows 2.6

I have created a SCX screen with a table, using GENSCRN. All fields and field Descs in place. Now, I needed to add fields in the table. New fields added. When I open the SCX file ....When I add the input fields for the new changes (fields), Instead of a white boxed area, i get a different color. I understand that the windows color schemes. But, Why is it not like all the other fields (previously made)??

The SCX must have a copy of the database properties when it was first created. Do I have to somehow update the SCX properties? How? Without changing the layout

Must I create a whole new SCX from GENSCRN everytime I add new fields? Yikes!  I wish all the input fields the same background color. As I look in the SPR file, no SET COLOR statements present.

Thanks for you help guy!

Mark Geer

RE: Adding Fields into SCX. HELP ME, PLZ!

Am I understanding this correctly; you are creating a screen programmatically from a table instead of the screen designer?

Dave S.

RE: Adding Fields into SCX. HELP ME, PLZ!

I originally created the SCX using GENSCRN, which incorporates the fields into place...Now, I have added new fields. I wish to place these new fields into place also by Modify the SCX "Modi Screen {yadiyada}"
But the new input fields from the database or using the MEMVAR identifier (m.newfield). The input box shows up as a different color.

I wish to make all my changes via MODI SCREEN statement


P.S. WOW. What a fast response...Thanks

RE: Adding Fields into SCX. HELP ME, PLZ!

I'm comfused. "Normally" in FPW, you create a new screen form using the Screen designer, which put things in a .SCX table. Next you generate the .SPR file using the GENSCRN.PRG, although this step is automatic if you've placed the Screenset into a project. The SCX has no "database properties" other than those that the fields associated with any controls added, or any code you've written.

Are you using any "wizards", the application generator or some 3rd party framework?


RE: Adding Fields into SCX. HELP ME, PLZ!

Click on the input box and go to the menu option
"Object->Fill Color" for the background, or
"Object->Pen Color" for the font color.  
You will see a list of colors.  'Automatic' uses the system colors and a selected color will stay that way no matter what the system colors are.  

Dave S.

RE: Adding Fields into SCX. HELP ME, PLZ!


I guess that will work (setting bckground colors)

Adding additional MEVAR variables (m.this, m.that) won't hurt if "this" and "that" are fieelds within the database?
Updating SCX.

Mucho gracias again!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close