Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I abort a form from the Init method?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01286760
Message ID:
01286928
Vues:
20
>Naomi,
>
>That didn't work either. Here is my Init code now (I decided that I really didn't need the ASSERT command):
>
>
>PARAMETERS nProjectID
>LOCAL nGrpCount, llResult
>
>llResult = INDEXSEEK(nProjectID, .T., 'Projects', 'ProjectID')
>IF NOT llResult
>	MESSAGEBOX('Project not found in Projects table')
>	RETURN .F.
>ENDIF
>
>
>Jim

Next suggested step:
PARAMETERS nProjectID
LOCAL nGrpCount, llResult

llResult = .F.

IF NOT llResult
	MESSAGEBOX('Project not found in Projects table')
	RETURN .F.
ENDIF
If this fires then you are not picking up the expected value for your parameter.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform