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 06-23-2009, 03:45 PM
lviolette lviolette is online now
Registered User
 
Join Date: 06-23-2009
Posts: 2
How to use Read_INI to enumerate all values in an empty section?

Suppose the following INI section
[Build Platforms]
; Debug=True
; Release=False

All values in Build Platforms are commented out.

I expected the "Read INI" Action to return an empty string, or an empty array.

Instead it Fails with "The parameter is incorrect".

It works fine if at least one item exists in the section, but not if no items exist in the section.

I'm wanting to enumerate all the items in a section without requiring that section to contain an item (return empty string if section contains no items).

Right now, only way I can think of to do it is to write custom script code for my Read INI step and if the step fails, reset it to Success and manually set the return Macro value to an empty string.

Is there an easier way?
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 11:40 AM.


Copyright © 1999-2023 Kinook Software, Inc.