ERROR ON QLINGO CODE

52 views
Skip to first unread message

eliel.cwb

unread,
Dec 28, 2009, 5:44:02 AM12/28/09
to XMPie Interest Group
Hi guys I've entered the following code in Qlingo, because I need to
load an image according to the BIRTH DATE. But it's returning an
error. I posted the file with the screen shot with the error in the
Files section. It's name is XMPIE_ERROR.JPG. Follow the code.

if(GetMonth(|->[BIRTH DATE]) = 1)
{
GetDay(|->[BIRTH DATE] + 2 & ".jpg")
}


Please, help me.
Regards

George Marsh

unread,
Dec 28, 2009, 6:02:48 AM12/28/09
to xmpie...@googlegroups.com
> if(GetMonth(|->[BIRTH DATE]) = 1)

Is BIRTH DATE a date field?

Bill

unread,
Dec 28, 2009, 6:05:03 AM12/28/09
to XMPie Interest Group
The GetDay function takes a date parameter, and generates a number
from 1 to 31.
I am not sure of what the "+2" means in the 3rd line of your code, but
the closing parenthesis seems to be located at the wrong place.
You should perhaps try something like

AsString(GetDay(|->[BIRTH DATE]) + 2) & ".jpg"

eliel.cwb

unread,
Dec 28, 2009, 6:22:56 AM12/28/09
to XMPie Interest Group
Hi guys you are awesome. It really was just a 'parenthesis matter'...
Tks a lot!
Reply all
Reply to author
Forward
0 new messages