Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run only one instance of a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00830081
Message ID:
00830094
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
place the following code in the init of the form.
with _screen
 for lnI = 1 ti .formCount
  do case
    case .forms[lnI].name = this.name and .forms[lnI].visible
     * Found another form with same name and it is visible...
     * 
     .forms[lnI].show()

    case .forms[lnI].name = this.name and NOT .forms[lnI].visible
      * form exists but it's invisible so make it visible.
      *
      .forms[lnI].visible = .T.
      .forms[lnI].setfocus()
   endcase
  endfor
endwith
.......
DO WHILE .T.
      ME.Work()
ENDDO
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform