Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Creating Temp Macros using VB.Net Actions (https://www.kinook.com/Forum/showthread.php?t=523)

brizeka 07-28-2004 12:32 PM

Creating Temp Macros using VB.Net Actions
 
1 Attachment(s)
When running a VB.Net Action program, the logic attempts to set Temporary Macros. The call to the code executes successfully, but the Temporary Macro is not set.

Additionally, I can build the .Net program with a call to MessageBox.Show() -- for debugging, but the message never appears.

Zip file attached with VB.Net solution and the .BLD file.

kinook 07-29-2004 12:32 AM

It looks like a logic error in your custom action code. When I change the Show call like so:

Dim res As Integer = fInput.ShowDialog()
MessageBox.Show(res)
If res = DialogResult.OK Then
...

The messagebox displays the value 2, but you're comparing with DialogResult.OK, which has a value of 1, and so your logic to assign macros (and I suspect your MessageBox call as well) is skipped. Somewhere you need to update the value that ShowDialog returns or possibly use your own result value in a member variable of your form.

brizeka 07-29-2004 06:35 AM

Yes, you are absolutely right. I was not closing the form, but hiding it (ooops).

Thank you for your quick reply.


All times are GMT -5. The time now is 09:38 AM.


Copyright © 1999-2023 Kinook Software, Inc.