devi inserire nel form che vuoi tenere attivo una funzione di questo genere:
PUBLIC FUNTION Run() as Boolen
RETURN NOT ME.ShowModal()
END
Nella sub che richiama il form farai così:
PUBLIC SUB Button1_Click()
DIM Risp AS Boolean
Risp = Form1.Run()
END
Chiudendo la Form1 con ME.Close(TRUE) restituirà alla variabile Risp il valore TRUE e viceversa.
funziona
ps avevi dimenticato anche una a, postumi post feste :1birra: :1birra:
PUBLIC FUNCTION Run() AS Boolean
RETURN ME.ShowModal()
END
PUBLIC SUB Button2_Click()
DIM Risp AS Boolean
Risp = Form1.Run()
END
grazie e alla prossima