forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS DDE Server Bug

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jul 25, 2003 10:30 pm    Post subject: VDS DDE Server Bug Reply with quote

When using the following macro for the VDS IDE, I found that it overwrites
the line I specify, and doesn't insert a line. As stated from the help file:

Quote:
[INSERT(n,<string>)]

Inserts a line of text before line n in the currently selected page in the editor. Returns "**EOF**" if n is greater than the number of lines in the file.


The macro doesn't work that way:

Code:
DDE EXECUTE,[INSERT(0","@item(LIST1))]

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jul 26, 2003 9:56 am    Post subject: Reply with quote

Maybe without the [ and ] brackets?
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Jul 26, 2003 10:22 am    Post subject: Reply with quote

Nope, brackets should be there, Skit..

As far as I can tell FF's syntax is correct (I dunno about the quoted comma after the line number, I
think I would leave the comma unquoted, though).

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Jul 26, 2003 10:31 am    Post subject: Reply with quote

Well, I was wrong! Actually the comma must be quoted for some reason..


This code works for me:

Code:
DIALOG CREATE,New Dialog,-1,0,0,0
DIALOG SHOW


DDE LINK,VDS,System
DDE EXECUTE,[INSERT(3","newline inserted)]
%%result = @DDEITEM(DDEResult)
info %%result
DDE TERMINATE,VDS


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jul 26, 2003 1:21 pm    Post subject: Reply with quote

The quoted comma is there because that is how the macro is made for it.
That's the syntax of it. Smile

My problem is that it overwrites the line, not inserts a line. Look at this
code, it should insert a line at the top of the script.

Code:
DIALOG CREATE,New Dialog,-1,0,0,0
DIALOG SHOW


DDE LINK,VDS,System
DDE EXECUTE,[INSERT(0","newline inserted)]
%%result = @DDEITEM(DDEResult)
info %%result
DDE TERMINATE,VDS

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Jul 26, 2003 1:42 pm    Post subject: Reply with quote

Yup, that seems like a bug all right! This behavior could be very unpleasant when your previous lines
just vanish in thin air...

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jul 26, 2003 1:46 pm    Post subject: Reply with quote

I tried to make a tool to manage some code lines, and they need to be
inserted at the top of the script. But this overwrote my lines and I'd really
like to control it via DDE because it can't really go wrong compared to
sending text to the window, etc.

Thanks for confirming this, Dr. Dread! Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 01, 2003 10:44 am    Post subject: Reply with quote

This will be fixed in the next update.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 1:11 pm    Post subject: Reply with quote

jules wrote:
This will be fixed in the next update.


That's excellent. Thanks. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Aug 01, 2003 1:51 pm    Post subject: Reply with quote

Any idea on a time frame for the update?
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Aug 01, 2003 1:58 pm    Post subject: Reply with quote

No. I'm just fixing the bugs. It's up to Commercial research when they release the update.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Aug 01, 2003 5:08 pm    Post subject: Reply with quote

I see... no problem. Smile
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group