Neva Object Technology Support Forum Forum Index Neva Object Technology Support Forum
Neva Object Technology.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

syntax question on dde request

 
Post new topic   Reply to topic    Neva Object Technology Support Forum Forum Index -> JavaDde
View previous topic :: View next topic  
Author Message
m68_1



Joined: 22 Oct 2009
Posts: 2

PostPosted: Thu Oct 22, 2009 6:20 am    Post subject: syntax question on dde request Reply with quote

hi everyone,

I need to get data from a DDE server (it is a software called futuresource, one of the eSignals products)

this is the syntax I use in excel and it works:
=FSDDE|Quote!'fld:"GC Z9".Ask'

i am trying to do the same in java and this is the java code I have

DdeClient cl = new DdeClient();
cl.connect("FSDDE","QUOTE");
String item = "'fld:\"GC Z9\".Ask'";
byte [] d = cl.request(item,DdeUtil.CF_TEXT,1000);

and it gives me an error:
Error parsing link 'fld:'GC Z9'.Ask'


note, somehow in the error message, it changes double quotes from item variable into single quotes

can anyone shed some light? thanks in advance.


Mike
Back to top
View user's profile Send private message
ken



Joined: 25 Mar 2004
Posts: 634

PostPosted: Thu Oct 22, 2009 6:57 am    Post subject: Reply with quote

Have you tried String item = "fld:\"GC Z9\".Ask" ? No single quotes
Back to top
View user's profile Send private message
m68_1



Joined: 22 Oct 2009
Posts: 2

PostPosted: Thu Oct 22, 2009 7:14 am    Post subject: Reply with quote

ken wrote:
Have you tried String item = "fld:\"GC Z9\".Ask" ? No single quotes


yes i did, no luck.
Back to top
View user's profile Send private message
ken



Joined: 25 Mar 2004
Posts: 634

PostPosted: Thu Oct 22, 2009 1:11 pm    Post subject: Reply with quote

I would also try removing all quotes. Or even "GC Z9,Ask". Finally,I would check FS DDE manual.
Back to top
View user's profile Send private message
jct



Joined: 11 Nov 2009
Posts: 1

PostPosted: Wed Nov 11, 2009 6:16 pm    Post subject: Reply with quote

Mike,

Did you ever figure out the correct syntax? I'm trying to do the same with VB and can't get the DDERequest formatting down.

Like you, I've tried many combinations of single and double quotes and removed various parts of the text which appear in the Excel cell.

Having a difficult time getting help from eSignal on it.

John
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Neva Object Technology Support Forum Forum Index -> JavaDde All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group