Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOR EACH....Basic question
Message
From
06/05/1998 11:51:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
FOR EACH....Basic question
Miscellaneous
Thread ID:
00097376
Message ID:
00097376
Views:
54
Hello everybody!
This is first time I'm trying to use this.
The reason is that I need to change color for each page in pageframe if any information is entered. So I need to go by each page, check each control and if value !empty gotta change color.

This is my code with "something wrong" in there:

FOR EACH Pages IN ThisForm.frame1.Pages
Pages.FORECOLOR=RGB(0,0,0)
FOR EACH objects IN ThisForm.frame1.Pages
IF INLIST(UPPER(objects.BaseClass), "TEXTBOX", "EDITBOX")
kukla = objects.Value
IF !EMPTY(&kukla)
Pages.ForeColor=RGB(0,0,0)
ENDIF
ENDIF
NEXT
NEXT
XO4Y BCE 3HATb,YMETb,IMETb!
Next
Reply
Map
View

Click here to load this message in the networking platform