Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New to VB
Message
 
À
30/06/1999 07:23:16
Nikki Bannister
K&M Computer Systems Ltd
Birmingham, Royaume Uni
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00235213
Message ID:
00235760
Vues:
23
>Thanks for your help Sylvain
>
>Could you please help me further?
>
>I can't figure out how to call the form from a fuction and return the value. Once I know how to do this everything else seems to be working.
>
>Thanks in advance
>
>Nicky

What you have to do here is to declare a public function in your called form and call this function instead of calling form.show.

For example:

FORM1
=====
'instead of Form2.Show vbModal
blnReturn = DisplayForm2


FORM2
=====

Public Function DisplayForm2() as boolean
Me.Show vbModal
DisplayForm2 = True
End Function
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform