Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-23-2006, 06:27 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Odd JScript behaviour

If I use

["/samplestring/".replace (/[[\\\/]]$/, "")]

as the Value: for a Set Macro step the macro is set to

/samplestring/

and is also shown in the mouseover tool tip with shift down. If I use the immediate pane in the Script Editor to evaluate:

"/samplestring/".replace (/[\\\/]$/, "")

I get:

/samplestring

What am I missing here?

Update: replace (/(\\|\/)$/, "") works around the problem

Last edited by pjaquiery; 01-23-2006 at 06:44 PM.
Reply With Quote
 


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 07:23 PM.


Copyright © 1999-2023 Kinook Software, Inc.