I have a few questions on the "Tool Configuration" option:
1. Is there a way to output to a dialog window.
2. Is there a way to automatically goto a line#
3. Is there a way to close the output window on certain conditions programmatically
Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
bochaton wrote:I have a few questions on the "Tool Configuration" option:
1. Is there a way to output to a dialog window.
2. Is there a way to automatically goto a line#
3. Is there a way to close the output window on certain conditions programmatically
def var cErrors as char no-undo.
def var ix as int no-undo.
compile value(session:param) save = no no-error.
output to "OE\chkSyn.txt".
if error-status:error or compiler:warning or compiler:error then
do:
do ix = 1 to error-status:num-messages:
cErrors = cErrors + error-status:get-message(ix) + "~n".
end.
put unformatted
right-trim(cErrors,"~n").
if compiler:error-row <> ? then
os-command silent
value(substi("start <path to>\Uedit32.exe &1/&2/&3",
compiler:file-name,
compiler:error-row,
compiler:error-column)).
end.
else
message
"Syntax is correct".
output close.
quit.
@echo off
path=C:\PROGRA~1\OPENED~1\bin;%path%
prowin32 -param "%1" -p .\OE\checkSyntax.p -pf .\OE\<db-info etc>.pf -ininame .\OE\<used inifile for project>.ini
type OE\chkSyn.txt
del OE\chkSyn.txt

