Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Bug in "Check script for errors"

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Bug in "Check script for errors"
#13577
Posted by: Michael S 2012-01-18 16:36:25
I have the following code in my script

bts_wrong_length:

ARG z
y = z * -1
zedsmsg = "Invalid input"
zedlmsg = 'Replacing variables with the BTS string, the variables',
          '"ran out". This probably means you adjusted a length',
          'indicator WITHOUT adjusting the length of the BTS  string', 

IF z < 0 THEN
  zedlmsg = zedlmsg || ' (your BTS string is 'y' byte(s) too long).'
ELSE
  zedlmsg = zedlmsg || ' (your BTS string is missing 'z' byte(s)).'

temp = " (DON'T forget to adjust the value in TRANLÄNGD as well)"
zedlmsg = zedlmsg || temp
rc = wdwsay.rex(zedlmsg, "STOP|")
RAISE FAILURE 2 DESCRIPTION ""
RETURN 0
Note the (invalid) trailing comma before the IF statement. Check script for errors says nothing about this, but when I create an exe and try to run it, I get the attached error message.

Took me a while to track it down, first deleting the script from the project, then adding it, then removing most of the code, then adding procedures one at a time etc etc etc .

Create_exe_error.png
Message2. Here's a more serious one (cause RPC to crash)
#13578
Posted by: Michael S 2012-01-18 20:29:40 Last edited by: Michael S 2012-01-18 20:35:43 (Total edited 1 time)
Just open the script and do a check script.

Found it - look for the line

pargs ARG ims_trans, error_type
DIALEXTR.REX
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Mon 2024-10-7  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0