Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Forms detect function ??
i have my project with 3 forms in it
and I am trying to center them in the screen thru a function
say formcntr(formname)
I created the function in a separate module and call it PUBLIC
thinking that the only thing you need is the active form "name"
and do :
--- module routine
function formcntr(formx)
forx.top = some value
forx.left = some value
----- end
and then you will be able to acces Its prop. but then the Debug comes
backt with Mismatch data type errors..
Is is possible to do this or I am better of coding the center routines
on the Load events for each of the forms??
Mark Oliva
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement