Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property click is read only
Message
 
To
06/11/2000 16:27:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00438468
Message ID:
00438746
Views:
12
>>>Here's a design time PRG that will work:
>>>
Modify Form myform Nowait
>>>ASelObj(lax,1)
>>>ZForm = lax[1]
>>>ZForm.AddObject("cmd1","commandbutton")
>>>ZForm.cmd1.Caption = "Release thisform"
>>><b>ZForm.cmd1.WriteMethod("Click","Release thisform")</b>
>>
>>I guess I misunderstood you, and thought I could proceed by the writemethod code rather then "ZForm.cmd1.Click = "Release thisform".
>
>You can use it. Just not by saying object.writemethod = ("click","release thisform")
>
>>I am experimenting, not sure why folks do this programatically rather then the form designer.
>
>For the most part there's no need to, but for creating builders (e.g.) it comes in handy.
>
>>PS you code doesn't quite work, there's a modi form statment in it
>
>Yes there is. This is so it can bring up a Designer so it will be at design time. Did you include the NOWAIT?
>
>>and 'lax' dopes not exist.
>
>ASELOBJ() creates this array, if the form designer is still up (which is why I ask about the NOWAIT)
>
>>Did it work for you?
>
>Yep. Copy/paste right from the code I tested.
>Try copy/pasting it (without the ">"s of course) and see if works then.

Trey,I pasted it in and ran it. Is the form supposed to run normally or am I supposed to modify it. It appears to be in the modi state and the form never releases even when I hit cmd1 button, instead it is in modi state.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform