Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set a property of all forms in a project?
Message
 
 
À
09/05/2007 11:43:39
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, Chine
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01223778
Message ID:
01223825
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform