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

Adding Fields into SCX. HELP ME, PLZ!

Status
Not open for further replies.

ABQMark

Programmer
Aug 16, 2001
28
US
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
 
Am I understanding this correctly; you are creating a screen programmatically from a table instead of the screen designer?

Dave S.
 
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

Mark

P.S. WOW. What a fast response...Thanks
 
Mark,
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?

Rick
 
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.
 
Thanks,

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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top