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)
-   -   Custom Action Error (https://www.kinook.com/Forum/showthread.php?t=1101)

sigh71 06-13-2005 03:45 AM

Custom Action Error
 
I'm trying to make a custom action, and when it runs i get this error

Unable to convert property ServerName (value: asgard) to Boolean

Its a c# action, but i don't think its getting to my actual code in the dll.
Here is my action file.
i can provide the c# code if needed.
I'm trying to make a custom action to start and stop vmware virtual servers.



Description="Manage VMWare virtual servers"
Bitmap="NETAction.bmp">


Type="Edit"
Description="VMWare GSX Server Name"
Width="200">

Type="Edit"
Description="GSX Login Name"
Width="200">

Type="Edit"
Description="GSX Password"
Width="200">

Type="Edit"
Description="Virtual Machine Name"
Width="200">

Type="Combo"
Description="Virtual Machine Action"
Width="200"
DefaultValue="1">









VMWareAction.Test-->


kinook 06-13-2005 08:55 AM

It looks like the error is happening in your custom action when calling

step.get_ExpProperty(builder, "ServerName", (short)VarEnum.VT_BOOL)

The ExpProperty method attempts to convert the property value to the type specified in the 3rd parameter, and that will fail for a value that isn't numeric or True/False. I suspect that you don't actually want to change the server name to boolean, so using VarEnum.VT_BSTR instead should work.

sigh71 06-13-2005 07:44 PM

thanks i'll give that a go...

was actually using VT_LPSTR...


All times are GMT -5. The time now is 08:27 PM.


Copyright © 1999-2023 Kinook Software, Inc.