Dear Gurus!
I have two separate codes that do two different things.
I, the top part of the code below greets a user once he/she logs into the our corporate site. This works great.
The below code displays current date.
It works great also.
The problem that I am having is that date is below user like this:
Aug 23, 2002
Welcome, User
I need them to be on the same line like this:
Aug 23, 2002 Welcome, User
Can someone help me merge these codes?
Thanks in advance;
Function GetContent(node)
Dim strContent
Dim objKnowledge
Dim text_user
Dim ilf
Dim len_user
Set objKnowledge = CreateObject("CDO.KnowledgeDocument"
if objKnowledge Is Nothing Then
strContent="Client is NOT installed."
else
text_user=factory.variables.item("logon_user"
ilf=Instr(text_user,"\"
len_user=len(text_user)
GetContent = "<font size=3>Welcome, <b>" & mid(text_user,ilf+1,len_user) & "</b></font>"
end if
End Function
*****************************************
Function getContent(xml)
Dim strContent
strContent = "<DIV style=""font-size: 120%"">"
strContent = strContent & FormatDateTime(Now(), 1)
strContent = strContent & "</DIV>"
strContent = strContent & "<HR>"
getContent = strContent
End Function
I have two separate codes that do two different things.
I, the top part of the code below greets a user once he/she logs into the our corporate site. This works great.
The below code displays current date.
It works great also.
The problem that I am having is that date is below user like this:
Aug 23, 2002
Welcome, User
I need them to be on the same line like this:
Aug 23, 2002 Welcome, User
Can someone help me merge these codes?
Thanks in advance;
Function GetContent(node)
Dim strContent
Dim objKnowledge
Dim text_user
Dim ilf
Dim len_user
Set objKnowledge = CreateObject("CDO.KnowledgeDocument"
if objKnowledge Is Nothing Then
strContent="Client is NOT installed."
else
text_user=factory.variables.item("logon_user"
ilf=Instr(text_user,"\"
len_user=len(text_user)
GetContent = "<font size=3>Welcome, <b>" & mid(text_user,ilf+1,len_user) & "</b></font>"
end if
End Function
*****************************************
Function getContent(xml)
Dim strContent
strContent = "<DIV style=""font-size: 120%"">"
strContent = strContent & FormatDateTime(Now(), 1)
strContent = strContent & "</DIV>"
strContent = strContent & "<HR>"
getContent = strContent
End Function