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 05-16-2005, 01:59 AM
pyang pyang is online now
Registered User
 
Join Date: 12-23-2003
Posts: 33
how to set macro value from text file?

Hi,

I would like to set a macro value with the value taken from a text file. How can i do that.

Thank you.

pyang
Reply With Quote
  #2  
Old 05-16-2005, 06:38 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The attachment shows a couple ways to read the contents of a text file into a macro.
Attached Files
File Type: bld macrofromfile.bld (833 Bytes, 1456 views)
Reply With Quote
  #3  
Old 05-16-2005, 07:50 PM
pyang pyang is online now
Registered User
 
Join Date: 12-23-2003
Posts: 33
Talking

Thank you. Got it working!!!
Reply With Quote
  #4  
Old 05-24-2005, 08:55 AM
GrahamS GrahamS is online now
Registered User
 
Join Date: 12-26-2003
Posts: 16
Extending this idea, how can I extract some text from a file and assign it to the macro? For example, extract the version ID from a file, where the version is always coded in the following format

VersionID = "x.y.z";

(x.y.z could, of course, change from build to build)
Reply With Quote
  #5  
Old 05-24-2005, 04:24 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See attachment.
Attached Files
File Type: bld verfromfile.bld (1.2 KB, 1591 views)
Reply With Quote
  #6  
Old 05-25-2005, 04:46 AM
GrahamS GrahamS is online now
Registered User
 
Join Date: 12-26-2003
Posts: 16
Thanks a lot - easy when you know how :-)
Reply With Quote
  #7  
Old 08-17-2005, 04:17 PM
Ken Ken is online now
Registered User
 
Join Date: 05-08-2003
Posts: 20
Thanks, this helped me as well!

Ken
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 12:42 PM.


Copyright © 1999-2023 Kinook Software, Inc.