Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append and edit
Message
De
24/01/2008 08:28:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/01/2008 06:39:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01284370
Message ID:
01284921
Vues:
16
What didn't work? Did you get an error message? Did you get unexpected results?

>thank you for reply,
>
>this part did not work,
>
>IF thisform.text12.Value=("x")
>   REPLACE PRIOR WITH 1
>ENDIF
>
>IF thisform.text13.Value=("x")
>   REPLACE PRIOR WITH 2
>ENDIF
>
>IF thisform.text14.Value=("x")
>    REPLACE PRIOR WITH 3
>ENDIF
>
>thanks
>
>>So what is the question? Does the code work? If not, what is the problem?
>>
>>>hi all,
>>>
>>>i need to use this code for append new records or modify .
>>>
>>>Do Case
>>>Case This.Caption="EDIT"
>>>	This.Caption = "Save"
>>>	Thisform.command30.Enabled = .T.
>>>	Thisform.SetAll("Enabled",.T.,"textbox")
>>>	Thisform.SetAll("Enabled",.T.,"COMBObox")
>>>		Thisform.COMMAND18.Enabled=.t.
>>>		
>>>Case This.Caption = 'Save'
>>>	This.Caption = 'EDIT'
>>>	cAlias = Thisform.DataEnvironment.InitialSelectedAlias
>>>	Select (cAlias)
>>>	If CursorGetProp("Buffering")> 1
>>>		=Tableupdate(1,.T.,cAlias)
>>>IF thisform.text12.Value=("x")
>>>REPLACE PRIOR WITH 1
>>>ENDIF
>>>
>>>IF thisform.text13.Value=("x")
>>>REPLACE PRIOR WITH 2
>>>ENDIF
>>>
>>>IF thisform.text14.Value=("x")
>>>REPLACE PRIOR WITH 3
>>>ENDIF
>>>	Thisform.SetAll("Enabled",.F.,"textbox")
>>>
>>>	Endif
>>>	Thisform.command30.Enabled = .T.
>>>	Thisform.SetAll("Enabled",.F.,"textbox")
>>>    ENDCASE
>>>
>>>
>>>
>>>THANKS
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform