Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-30-2007, 11:53 AM
AndyChamp
Guest
 
Posts: n/a
vbld_FileOutOfDate

Hi,

I want to add a conditional build for some steps. I've got a file which I process through about three levels to get an output file. If the output file is newer than the input file, it's not worth the trouble.

I've added a group into my script with a condition on it:

[vbld_FileOutOfDate("%TARGETSCHEMEPATH%", "%PROCFILES_FULLPATH%")]

I've obviously messed somehting up, because it always says

Building project step 'Build only if newer'...
Error expanding macros or script in property condexpr: <Error in System (VBScript) script code at Line 258, Column 3 (Variable is undefined: 'FileOutOfDate')>

Could you give me an example please?

Thanks

Andy
Reply With Quote
  #2  
Old 04-30-2007, 12:25 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Actually, there is a bug in the VBScript vbld_FileOutOfDate system script function (the error you described will occur if the target file doesn't exist). Building the attached file and restarting VBP will fix it.
Attached Files
File Type: bld fixsysscript.bld (542 Bytes, 1328 views)
Reply With Quote
  #3  
Old 05-01-2007, 04:37 AM
AndyChamp
Guest
 
Posts: n/a
Thanks for that.

It seems to me this is a case for an FAQ entry, to stop someone else having the same problem.

Andy
Reply With Quote
Reply


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 08:04 AM.


Copyright © 1999-2023 Kinook Software, Inc.