Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizbtns class
Message
From
03/01/2001 02:51:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00457739
Message ID:
00458809
Views:
16
>Ok, thanks, that is now done.I have my own working copy. I did see code in the add btn that read:
>IF THIS.Parent.EditMode
> THIS.Parent.UpdateRows()
>ELSE
> IF !THIS.Parent.AddRec()
> RETURN
> ENDIF
>Can I ask 2 more things?
>
>-what does "THIS.Parent.UpdateRows()" do? I can't seem to find it.
>-Also, I cannot find the 'REVERT' reference that the add button turns into.
>
>Thanks again.

-This.parent refers to the container (txtbtns) itself. Updaterows() does the tableupdating part. You can find it either from PEM sheet or while a code window is open search for 'tableupdate' (all objects checked).
-Revert is in cmdEdit button click. (Setcaption has below code) :
* Caption defines here
IF THIS.EditMode
	THIS.cmdAdd.Caption = SAVE_CAPTION_LOC
	THIS.cmdEdit.Caption = REV_CAPTION_LOC && Revert caption
ELSE
	THIS.cmdAdd.Caption = ADD_CAPTION_LOC
	THIS.cmdEdit.Caption = EDIT_CAPTION_LOC
ENDIF
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform