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 06-03-2010, 08:45 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Multiline Macro Value

Is there a way to read each line, one at a time, from a mutiline macro value.

I cant seem to find an example, any sample you can provide would be appreciated.
Reply With Quote
  #2  
Old 06-03-2010, 08:50 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Forgot to mention I was trying to do this in VBScript
Reply With Quote
  #3  
Old 06-03-2010, 08:57 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See attached sample.
Attached Files
File Type: bld multiline.bld (1.3 KB, 1664 views)
Reply With Quote
  #4  
Old 06-03-2010, 10:41 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Great thanks for the help!!
Reply With Quote
  #5  
Old 06-08-2010, 02:12 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
I tried to modify each line but I am not getting anywhere, I tried the following:


'Set objSearchResults = Application.Macros(vbldMacroTemporary).Item("TMP_S EARCH_RESULTS")

'strLines = Split(objSearchResults.Value, vbCrLf)

'For Each strEachLine In strLines

' If strEachLine = "Somthing" then
' strEachLine = "SomethingDifferent"
' End if

'Next

'objSearchResults.Value = strLines


The main macro is not geting updated.
Reply With Quote
  #6  
Old 06-08-2010, 02:21 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Attached.
Attached Files
File Type: bld multiline2.bld (1.2 KB, 1684 views)
Reply With Quote
  #7  
Old 06-08-2010, 02:36 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Thanks again!
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 06:50 PM.


Copyright © 1999-2023 Kinook Software, Inc.