Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append
Message
De
24/08/2010 11:39:52
 
 
À
24/08/2010 11:18:07
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:
01478154
Vues:
52
>hi all,
>
>i need to add
>go bottom
>append blank to this code below, and message as are you sure Y,N
>
>Do Case
>Case This.Caption="Modify"
>	This.Caption = "Save"    
>	Thisform.command1.Enabled = .T.
>	Thisform.SetAll("Enabled",.T.,"textbox") 
>Case This.Caption = 'Save'  
>	This.Caption = 'Modify'
>	cAlias = Thisform.DataEnvironment.InitialSelectedAlias
>	Select (cAlias)
>		If CursorGetProp("Buffering")> 1 
>		=Tableupdate(1,.T.,cAlias)
>	Endif
>	Thisform.command1.Enabled = .T.
>	Thisform.SetAll("Enabled",.F.,"textbox") 
>ENDCASE
>	Thisform.command1.Enabled = .T.
>
>
>
>
>thanks

It's not quite clear where you want to add this code, but you don't need "GO BOTTOM" APPEND BLANK automatically places you in the new record.

you can use MESSAGEBOX() to display a message and get the response. SO your code would look something like this:
IF MESSAGEBOX("Are you Sure") = 6 && or whatever the return code is, check the help
   APPEND BLANK
ENDIF
Frank.

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

Click here to load this message in the networking platform