Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView Expand / NodeClick
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00707240
Message ID:
00708237
Vues:
19
This message has been marked as the solution to the initial question of the thread.
If you are using VFP 6 or 7, program(-1) returns the current program call stack level. From that, you can check if the previous level is from the "RefreshForm" method... if so, DONT force the extra instance to call again, skip it...
Func RefreshForm
  ..
  ..
  Call to your NodeClick()...
  ..
  ..
EndFunc

Function NodeClick
  ..
  .. your other code
  ..
  ** See if this instance called from RefreshForm 1 level back
  IF ATC( "RefreshForm", program( program(-1) -1 ) ) = 0
    ** must be from user clicking or other...
    ** NOT from the Refresh form method... allow call
    RefreshForm()
  ENDIF

  ..
  ..
EndFunc
HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform