Spørgsmål Visual Basic

  • 27. april 2012 15:49
     
     

    1) How do I code spaces between strings? [example: need extra spacing between "CX.ATC.CB1.TEXT" and "CX.DT.UW.CREDITFILE.EXPIR"?] 

    2)How do I create an extra line feed so that my two conditions have an extra line field between them?  [example: between "CX.DT.UW.CREDITFILE.EXPIR" and "CX.ATC.CB2.TEXT"]

    I have searched high and low for this and can't find the answers.  Any help would be greatly appreciated since I'm such a newbie.

    Here is some of my code:

    'GENERAL CONDITIONS - CREDIT FILE EXPIRATION DATE
    If Macro.GetField("CX.ATC.CB1")="X" THEN
     CCV = Macro.GetField("CX.ATC.COND.VIEW")
     Macro.SetField("CX.ATC.COND.VIEW", CCV+vbCrLf+Macro.GetField("CX.ATC.CB1.TEXT"))
    End If 
    If Macro.GetField("CX.ATC.CB1")="X" THEN
     CCV = Macro.GetField("CX.ATC.COND.VIEW")
     Macro.SetField("CX.ATC.COND.VIEW", CCV+Macro.GetField("CX.DT.UW.CREDITFILE.EXPIR"))
    End If
    'GENERAL CONDITIONS - BORROWER TO SIGN
    If Macro.GetField("CX.ATC.CB2")="X" THEN
     CCV = Macro.GetField("CX.ATC.COND.VIEW")
     Macro.SetField("CX.ATC.COND.VIEW", CCV+vbCrLf+Macro.GetField("CX.ATC.CB2.TEXT"))
    End If
    If Macro.GetField("CX.ATC.CB2")="X" THEN
     CCV = Macro.GetField("CX.ATC.COND.VIEW")
     Macro.SetField("CX.ATC.COND.VIEW", CCV+Macro.GetField("CX.ATC.CB2.TEXT1"))
    End If

Alle besvarelser