John Castilletti wrote:
> How would I make the following work.
> command.setCommand("RUN BP TEST" + @FM + "DATA PRINT");
> It is failing on the @FM.
> Any help would be greatly appreciated!
You're doing _Java_ string concatenation there, the Java compiler
doesn't know what you mean by @FM. You can ask the database server what
character to use for the marks like this:
String vm = uSession.getMarkCharacter( UniObjectsTokens.VM );
Try FM or AM in place of VM, I'm not sure which it is.
You could also just insert the String value of the character-- what is
it, 252 for @FM? That would save the database call, but your code
wouldn't work if for some reason the marks were different.
Something like:
String.valueOf( (char) 252 );
Or maybe you can just do:
command.setCommand("RUN BP TEST" + (char) 252 + "DATA PRINT");
I'd have to play with it to see what works, so I'll leave that to you.
:)
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/