Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetValue and SC 1

Status
Not open for further replies.

Luke997

Technical User
Mar 21, 2005
3
0
0
NL
Hello everyone!
Did anyone figure out how to use a DDE call to set or get a value out of SC? I know how to use the functions in SC to do things (The SetFocus function works fine), but I cant get the SetValue or GetValue functions to work.
Code is as follows:

DDE_Link = DDEInitiate("ServiceCenter", "Actions")
DDEExecute DDE_Link, "[SetFocus(""article.id"")]"
DDEExecute DDE_Link, "[SetValue(""article.id"",""123"")]"
Temp=DDEExecute (DDE_Link, "[GetValue(""article.id"")]")
msgbox Temp
DDETerminate DDE_Link

It will set the focus to the right place but then generate an error with the application. And the GetValue will not work because the program says that the DDEExecute isnt a valid function or variable. Anyone has any clue? It is version 3.0 of ServiceCenter.
 
check the sc5 docu , there are some working examples ....
 
That works with SC3? Dont have the SC5 documentation, we are still back on version 3 ;)
 
no changes in DDE functions .. so SC5 doku should be okay .... can be downloaded from support.peregrine.com
 
Ah, it was Poke and not Execute, Thanks! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top