Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messing with .SCX form file methods?
Message
From
04/10/2001 09:31:37
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00564042
Message ID:
00564102
Views:
15
You added a new method, right ?

The RESERVED3 field in a SCX/VCX identifies "member names".

You probably need to add the method name to the RESERVED3 field.

The convention for "method names" (vs other members) is:

*[method name] [comment]

eg.

*RightClick This is blah, blah.

(Since you added this method last, I'd probably add the name to the end of the "method list" in RESERVED3).

>I read the form file MYFORM.SCX by doing
>USE MYFORM.SCX IN 0 SHARED
>
>and I added the last three lines to the methods of the form programmatically as shown here
>
>PROCEDURE When
>RETURN isediting
>ENDPROC
>PROCEDURE InteractiveChange
>* Yellow backgrnd if no data, White backgrnd if data
>THIS.BackColor = IIF(EMPTY(THIS.Value),RGB(255,255,128),RGB(255,255,255))
>THIS.DisabledBackColor = IIF(EMPTY(THIS.Value),RGB(255,255,128),RGB(255,255,255))
>ENDPROC
>PROCEDURE RightClick
>HELP ID THIS.HelpContextID
>ENDPROC
>
>
>My question is -
>How come when I open the form and look at the Methods that I added/updated by adding the PROCEDURE RightClick method to the form along with HELP ID THIS.HelpContextID line and the ENDPROC line, it does not show in the Methods? Am I forgetting something? I added those last 3 lines to the form.methods field.
>
>Thanks for a clue?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform