Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event syntax
Message
 
À
02/02/2005 13:52:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00983157
Message ID:
00983181
Vues:
17
I see what your code does. But when this is executed, error pops up "source is out of date" and "laform.prg does not exist"
>Here is how I do it:
>
>*--Form in this example is testform.scx
>MODIFY FORM testform NOWAIT
>
>ASELOBJ(laform, 1)
>loform = laform(1)
>*--See if controls are on a page on a pageframe named "pageframe"
>IF TYPE('loform.pageframe')<>"U"
>   FOR EACH lopage IN loform.PAGEFRAME.PAGES
>      FOR EACH ocontrol IN lopage.CONTROLS
>         *--Change the height, width, and valid
>         IF ALLTRIM(UPPER(ocontrol.BASECLASS)) = "TEXTBOX"
>            ocontrol.HEIGHT = 25
>            ocontrol.WIDTH = 64
>            lc_addline = "*--Valid Method"+CHR(13)
>            lc_value = ocontrol.READMETHOD('Valid')
>            ocontrol.WRITEMETHOD('Valid',lc_addline+lc_value+CHR(13))
>         ENDIF
>      ENDFOR
>   ENDFOR
>ELSE	&& no pageframe all controls are on the single page
>   FOR EACH ocontrol IN loform.CONTROLS
>      *--Change the height, width, and valid
>      IF ALLTRIM(UPPER(ocontrol.BASECLASS)) = "TEXTBOX"
>         ocontrol.HEIGHT = 25
>         ocontrol.WIDTH = 64
>         lc_addline = "*--Valid Method"+CHR(13)
>         lc_value = ocontrol.READMETHOD('Valid')
>         ocontrol.WRITEMETHOD('Valid',lc_addline+lc_value+CHR(13))
>      ENDIF
>   ENDFOR
>ENDIF
>
>RETURN
>
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform