Kinook Software Forums

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

Thread Tools Rate Thread Display Modes
Old 08-20-2003, 07:45 AM
mbon mbon is online now
Registered User
Join Date: 08-20-2003
Posts: 1
Inserting brackets into a file


I'm trying to insert the following string into a source file:

[assembly: SomeAttribute("foo")

(Note that there is no closing bracket)

If I enter this string in the replace box of the 'Replace in file' item it complains that if find no closing bracket and generates a parsing error (expecting section). Even if i adde the closing bracket it does not work because vbp thinks that is is a piece of code and wants to execute teh statement 'assembly:...'.

I tried to create a macro and a function that returns a string that contains the string above, but even the result of both ways are subject to parsing.

So how can i insert a '[' in a file?
Reply With Quote
Old 08-20-2003, 08:48 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,750
Brackets within a field normally denote script code to be evaluated. To insert a literal bracket char, double up the character: [[. If you lookup '[' in the help index, the related topics document this.
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 10:02 PM.

Copyright 1999-2019 Kinook Software, Inc.