Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 07-20-2003, 10:47 PM
sigh71 sigh71 is online now
Registered User
Join Date: 02-05-2003
Posts: 7
Question User Actions

I'm trying to add a fairly simple user action to my project, that causes the project to fail with a given message.

here it is

<action Name="Fail Build"

<GUI Category="Samples"
Description="Test action implemented as script"
Bitmap="User Action1.bmp">

<Tab Name="Properties">
<Field Name="Error Msg"
Description="Error Message"

<Script Language="VBScript"><![CDATA[
Option Explicit
err.Description = step.Property("Error Msg")
err.Raise 1

the action registers, and i can add it to my project and it works exactly how i want it to....
but when i save and then reopen my project i get
"Error parsing document "C:\a.bld" is not well formed (invalid token)

and i cannot open the project file at all.
What's going on?
Reply With Quote
Old 07-22-2003, 08:50 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,900
The field names that you use cannot contain spaces, since they are used as elements in the .bld (XML) file. Change 'Error Msg' to 'ErrorMsg' in your .action and .bld file and it will work.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 04:36 PM.

Copyright 1999-2022 Kinook Software, Inc.