Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set a property of all forms in a project?
Message
 
 
To
09/05/2007 11:43:39
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, China
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01223778
Message ID:
01223825
Views:
34
This message has been marked as the solution to the initial question of the thread.
>Hi Naomi, I just want to -set the property in design time for all the forms in my project, I do this want to make all my forms and formsets working in mold (not moldless) status, and all my forms not based on a specific class, thank you!

I see. Well, the mistake is in not using a class, but anyway, let's concentrate on the problem on hand:
loProject = _vfp.ActiveProject

FOR lnI = 1 TO loProject.FILES.COUNT
  lcFileExt  = UPPER(JUSTEXT( loProject.FILES[lnI].NAME))
  if lcFileExt = 'SCX' && this a form file
     modify form (loProject.FILES[lnI].NAME) nowait
     aselobj(arr) && would this work?
    arr[1].WindowType = 1 && Modal 
    keyboard '{Ctrl + W}' && an attempt to close the form
  endif
next
That's from the top of my head and not tested at all. You may need to work out the details.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform