Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NODEFAULT no effect on MMC
Message
 
 
To
26/06/2001 14:24:57
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00523726
Message ID:
00523765
Views:
10
This message has been marked as the solution to the initial question of the thread.
It seems to me that only VFP controlls are affected by NODEFAULT.
On other hand there is cancel parameter in RecordClick() event and according to MMC help "Setting the Cancel parameter for the ButtonClick event to True prevents the default MCI command from being performed".

BTW, it's almost impossible to post replies today. After clicking on Preview or Send frame just goes white.

>In MMC, in my RecordClick() event, I verify if the file exist. If it is, I prompt the user to confirm overwriting it before continuing. If he says not, then, I want to get out of the event and cancel the default behavior. So, I put this in my code:
>
>
>This.Command='Close'
>
>IF FILE(This.FileName)
>
>   * If the file exist, we ask the user to overwrite it
>   IF ShowMes(GetMes('Multimed','FileExist'),36)=7
>      This.lRecord=.F.
>      This.Command='Open'
>      NODEFAULT
>      RETURN
>   ENDIF
>
>   ERASE (This.FileName)
>ENDIF
>
>This.Command='Open'
>
>
>However, this doesn't work. Even if we have a no confirmation, the NODEFAULT doesn't take effect. The RecordClick() event processes as is and start the recording. What am I missing?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform