Forum Discussion

ArmandsBruns's avatar
ArmandsBruns
Frequent Contributor
12 years ago

Log.Message " &variable &&"

Hi,



I have question about:



I would like to get the following result = (i + project.variable.value), but I haven't experience to write correct syntax



i = local variable

project.variable.value = project variable



Call LogMessage("" &i &" + "project.variable.value". Test case - some action " &Sellable_unit &".")



Sub LogMessage(message)



  Log.Message " &message &"



End Sub



Best regards

Armands

2 Replies

  • karkadil's avatar
    karkadil
    Valued Contributor
    In VBScript, & character is used to concatenate strings.



    Here is an example for you



    Log.Message "Some text at the beginning " & Project.Variables.Var1 + " some text in the end"