I am attempting to add a computed field in Infomaker with the following expression:
bitmap(“K:\dev_photos\"+string(customer_no)+".bmp")
however I keep getting an error message saying "expecting STRING expression"
I also tried: bitmap(“K:\dev_photos\"+customer_no+".BMP")
what am I missing?
Dale
Dale,
The only thing I can think of is that you need to specify a data format as the second parameter of the string() function. Reading through the help docs it makes it sound like numeric values being converted to string shouldn't need a format to be specified, but InfoMaker has misled me before.
That said, I don't have any experience with this to draw on and tell you for sure.
The only thing I can think of is replacing the mapped drive with the full path. FWIW I have computed fields in IM and they're formatted essentially like the latter of your two. bitmap("\\folder\otherfolder\"+customer_no+".bmp") so I don't think the string function should be necessary.
Thanks Levi and Amanda for your replies. It was actually something much simpler. I had a strange character but didn't notice.
I had “ instead of "
Don't know where I got that from but it was freakin the thing out.
From: Dale Aucoin <bounce-daleaucoin4707@tessituranetwork.com>Sent: 8/25/2010 11:42:05 AM
The worst kind of problem! Glad you found it without too much delay. Hate those nonsensical glitches. I have been caught by the difference between ` and ' on many occasions. You'd think I would learn eventually.