| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jul 25, 2003 10:30 pm Post subject: VDS DDE Server Bug |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat Jul 26, 2003 10:22 am Post subject: |
|
|
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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat Jul 26, 2003 10:31 am Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 26, 2003 1:21 pm Post subject: |
|
|
The quoted comma is there because that is how the macro is made for it.
That's the syntax of it.
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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat Jul 26, 2003 1:42 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jul 26, 2003 1:46 pm Post subject: |
|
|
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!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Aug 01, 2003 10:44 am Post subject: |
|
|
This will be fixed in the next update. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 01, 2003 1:11 pm Post subject: |
|
|
| jules wrote: | | This will be fixed in the next update. |
That's excellent. Thanks.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Aug 01, 2003 1:51 pm Post subject: |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Aug 01, 2003 1:58 pm Post subject: |
|
|
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 |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Aug 01, 2003 5:08 pm Post subject: |
|
|
I see... no problem.  _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
| Back to top |
|
 |
|