Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append
Message
De
24/08/2010 12:28:30
 
 
À
24/08/2010 12:00:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Append
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01478149
Message ID:
01478169
Vues:
42
>thank you for reply
>i use this code as add button
>
>	
>cAlias = Thisform.DataEnvironment.InitialSelectedAlias
>	Select (cAlias)
>*GO bottom
>*APPEND BLANK
>Thisform.Refresh() 
>thisform.command4.Caption ="Save"
>thisform.SetAll("Enabled", .T., "TextBox")
>thisform.SetAll("Value", "", "TextBox")
>
>this.enabled = .f. 
>thisform.text1.SetFocus() 
>
>
>
>where i can add this code to previous message
>
>IF MESSAGEBOX("Are you Sure") = 6 && or whatever the return code is, check the help
>   APPEND BLANK
>ENDIF
>
>
>

I guess you want it like this:
cAlias = Thisform.DataEnvironment.InitialSelectedAlias
Select (cAlias)

IF MESSAGEBOX("Are you Sure") = 6 && or whatever the return code is, check the help
   APPEND BLANK
   Thisform.Refresh() 
   thisform.command4.Caption ="Save"
   thisform.SetAll("Enabled", .T., "TextBox")
   thisform.SetAll("Value", "", "TextBox")

   this.enabled = .f. 
   thisform.text1.SetFocus() 
ENDIF
But why didn't you post this code first?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform