ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: [FIC] : Aide sur l'assitant d'adaptation   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

mer. 06 juin 2012, 19h00

FoxInCloud (Th. Nivelet)
France France

atoutfox.public.association

Re: [FIC] : Aide sur l'assitant d'adaptation

voici votre code modifié
[VFP]
*========================================================
PROCEDURE cherche_form &&
*========================================================
LPARAMETERS ;
v_chercheform,; && Paramétre N°1 = Nom de la form
j,; && ??
toForm AS awFrm OF aw.vcx && Référence au formulaire appelant - paramètre ajouté pour FoxInCloud

IF wlWeb()
m.toForm.wFormNoShow(ForceExt(m.v_chercheform, 'scx'))
RETURN 0
ELSE
N=0
j=0
FOR N = 1 TO _SCREEN.FORMCOUNT
IF !EMPTY(_SCREEN.FORMS(N).NAME)
IF _SCREEN.FORMS(N).NAME = UPPER(ALLTRIM(v_chercheform))
j=N
EXIT
ENDIF
ENDIF
ENDFOR
IF j = 0 && si la form n'est pas trouvée

DO FORM &v_chercheform NOSHOW && on lance la form

* on récupère le n° de la form lancée
FOR j= 1 TO _SCREEN.FORMCOUNT
IF _SCREEN.FORMS(j).NAME = UPPER(ALLTRIM(v_chercheform))
EXIT
ENDIF
ENDFOR
* Normalement on doit l'avoir
ENDIF
RETURN j
ENDIF
ENDPROC
[VFP]

pour l'appeler:
[VFP]
cherche_form('form',, thisForm)
[VFP]


Permalink : http://www.atoutfox.org/nntp.asp?ID=0000009121
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3