Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-23-2005, 10:48 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-19-2003
Location: Dunedin, New Zealand
Posts: 114
I use JScript all the time.

// Add a temporary macro
Application.Macros (0).Add ("EmailSuccess", success);

// Return the contents of a macro as a string
function GetStr (macroName)
{
var macro = Application.FindMacro (macroName);
if (macro == null)
return "";

return Application.ExpandMacros (macro);
}


// Load temporary macros from a file
var filename = "all.macros";
Application.Macros(0).Load (filename, false);

// Remove a temporary macro
Application.Macros (0).Remove ("ArchiveTimeStamp");

// Copy last step status to temporary macros
function SaveLast ()
{
tempMacros = Application.Macros (0);
sysMacros = Application.Macros (3);
tempMacros.Add ("SavedResult", sysMacros.item ("LASTSTEP_STATUS").value);
tempMacros.Add ("SavedOutput", sysMacros.item ("LASTSTEP_OUTPUT").value);
}
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 07:48 AM.


Copyright © 1999-2023 Kinook Software, Inc.