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 08-17-2004, 08:42 AM
Chudson Chudson is online now
Registered User
 
Join Date: 05-14-2004
Posts: 3
is there a way to clear macros from a vbscript

I am trying to clear or delete a macro and then reuse it.
I have tried setting the macro to ""
vbld_AllMacros.Item("filename").value = ""
but this results in a tab character then the value

ex:
instead of:
c:\test.txt
I get
c:\test.txt


I also have tried settting the value to null and that didnt work.

Thanks in advance.
Chris
Reply With Quote
  #2  
Old 08-17-2004, 09:01 AM
Chudson Chudson is online now
Registered User
 
Join Date: 05-14-2004
Posts: 3
found out a way

'this sets the macro equal to "" & tab
vbld_AllMacros.Item("filename").value = ""
'This removes the tab
vbld_NextDelimValue("filename")


full example
set project level macro with no value:
filename

'in the script
'this clears the value in the macro if it has one and then
'sets the new value
if vbld_AllMacros.Item("filename").value <> "" then
vbld_AllMacros.Item("filename").value = ""
vbld_NextDelimValue("filename")
end if

vbld_AddDelimValue "filename", myfile
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 09:56 AM.


Copyright © 1999-2023 Kinook Software, Inc.