User login
|
|
Frontpage Sponsor
|
|
Poll
|
What do you expect from your SI Implementation partner for the success of ERP implementation. Bring best practices - Not to offer more CR's Leveraging standard functions 20% Need more honesty to work with the Users until their processes are fully mapped & Users are trained 40% Focus on process automation/ integrations/ Real time data/ BI analytics 20% Stick to basics 20% Total votes: 10 |
Baanboard at LinkedIn
|

|
|
|
 |
|

23rd December 2005, 14:27
|
 |
Guru
|
|
Join Date: Aug 2004
Posts: 642
|
|
Baan: Baan IV -
DB: Oracle -
OS: HP UX, IBM AIX
|
Hi All , I use pipeline for disable program commands in script like that
| x = A + B
| x = A - B
compiler don't take care of these lines because of "|" . In that point , if I have 100 lines commands and I wan to disable those 100 lines command in my script. I don't want to put "|" for each of 100 lines. Another languages we can use like
/* xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*/
In baan is there any command to achive these ?
Thank you !
|

23rd December 2005, 18:34
|
 |
Guru
|
|
Join Date: Oct 2001
Location: Germany Moenchengladbach
Posts: 450
|
|
Baan: some -
DB: more -
OS: many
|
Hi there,
I don't think that in Baan scripts you can use something like
/* (Start comment)
sdf
sdf
sdf
sd
*/ End comment
But it should be easy to use vi to insert a character ('|') from line n to line m
:n,m s/^/\|/
"replace the beginning of the line with a '|' from line n to line m"
hth
Norbert
__________________
Have a nice day
|

23rd December 2005, 22:50
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,492
|
|
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 -
DB: MS SQL, Oracle -
OS: Windows 2000, 2003 & UNIX
|
Hi,
In SCITE you can select the code and then click on CTRL + Q.. and all will be comments.. then select again the comments and click on CTRL + Q again it will remove the pipe..
I hope it helps,
- George
|

26th December 2005, 05:36
|
 |
Senior Member
|
|
Join Date: Dec 2004
Location: India
Posts: 189
|
|
Baan: BaaN IV -
DB: SQL Server -
OS: WINDOWS-2000
|
Hi George
I tried for Ctrl + Q but getting message as "Block Comment Variable, comment.block' and no action takes place in SCITE.
Regards,
Ganesh
|

26th December 2005, 05:52
|
Senior Member
|
|
Join Date: Oct 2003
Location: Mumbai
Posts: 214
|
|
Baan: Baan Vc -
DB: SQL 2k -
OS: Win 2k
|
Hi,
In Scite open the code
1. Select the 100 lines you want to comment
2. Use Ctrl+Shft+B or Select Edit and then Box Comment.
Hope this helps.
__________________
Regards
Rita
|

26th December 2005, 07:37
|
 |
Guru
|
|
Join Date: Aug 2004
Posts: 642
|
|
Baan: Baan IV -
DB: Oracle -
OS: HP UX, IBM AIX
|
I use VIM. I think that there is no short way like /* */ . Thank you for all suggestions.
Best Regards ,
|

26th December 2005, 08:51
|
Senior Member
|
|
Join Date: Oct 2003
Location: Mumbai
Posts: 214
|
|
Baan: Baan Vc -
DB: SQL 2k -
OS: Win 2k
|
Hi,
The short cut does the following
/* Line1
* Line2
* Line3
* Line4
*....
*
*/
See how can you manage this quickly through the tools you have, It will comment your code.
__________________
Regards
Rita
|

27th December 2005, 04:37
|
 |
Senior Member
|
|
Join Date: Dec 2004
Location: India
Posts: 189
|
|
Baan: BaaN IV -
DB: SQL Server -
OS: WINDOWS-2000
|
Hi
I tried for Ctrl + Shift + B but getting message as "Box Comment Variables, comment.box.start" and no action takes place in SCITE.
Tell me is it reqd to do some special settings in Scite editor before applying above commands.
Regards,
Ganesh
|

27th December 2005, 10:22
|
 |
Senior Member
|
|
Join Date: Mar 2005
Location: Chennai
Posts: 114
|
|
Baan: Baan IV, Infor LN -
DB: oracle 10g, Oracle 9i -
OS: AIX, Windows server 2003
|
Have u used Ultra Edit
Dear Friends have u used Ultra Edit there u can comment al the required all at one using mouse or keyboard
well that's also a nice editor to use
Darpan Bhansali
|

27th December 2005, 11:45
|
Senior Member
|
|
Join Date: Oct 2003
Location: Mumbai
Posts: 214
|
|
Baan: Baan Vc -
DB: SQL 2k -
OS: Win 2k
|
Hi Ganesh,
Just check for this in your file baan.properties in the scite folder
# Comment blocks for Baan
comment.block.baan=|
comment.box.start.baan=|
comment.box.middle.baan=|
comment.box.end.baan=|
# Doesnot work too good for Baan use block or box commands
__________________
Regards
Rita
|

27th December 2005, 12:00
|
Senior Member
|
|
Join Date: Oct 2003
Location: Mumbai
Posts: 214
|
|
Baan: Baan Vc -
DB: SQL 2k -
OS: Win 2k
|
Hi,
I agree with Darpan, Ultra Edit is good editor to be explored.
__________________
Regards
Rita
|

27th December 2005, 12:27
|
 |
Guru
|
|
Join Date: Aug 2004
Posts: 642
|
|
Baan: Baan IV -
DB: Oracle -
OS: HP UX, IBM AIX
|
I wonder it. Could you send me Ultra Edit program
Thank you !!!
|

27th December 2005, 12:33
|
 |
Guru
|
|
Join Date: May 2004
Location: Nazareth
Posts: 1,492
|
|
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 -
DB: MS SQL, Oracle -
OS: Windows 2000, 2003 & UNIX
|
Quote:
Originally Posted by ganesh_kapase
Hi
I tried for Ctrl + Shift + B but getting message as "Box Comment Variables, comment.box.start" and no action takes place in SCITE.
Tell me is it reqd to do some special settings in Scite editor before applying above commands.
Regards,
Ganesh
|
I guess it is something with your properties as Rita said.
CTRL + Q should work too. It works for me.
- George
|

27th December 2005, 16:50
|
Member
|
|
Join Date: Sep 2001
Location: Alabama
Posts: 81
|
|
There is a command that tells the compiler to ignore the rest of the lines but I don't rember what it is.
|

27th December 2005, 17:21
|
 |
Guru
|
|
Join Date: Dec 2003
Location: Tokyo-Otsuka
Posts: 324
|
|
Baan: Baan IV c4 SP 19, ERP LN 6.1 FP3 -
DB: 10g R2 -
OS: Linux SLES 10 64 Bit
|
Macro could help
#if 0
any code inside this block cannot be seen
by the compiler; so it's like a comment.
#endif
Taken from this thread
http://www.baanboard.com/baanboard/s...ighlight=ifdef
But better use ultraedit (shareware -> not free).
Regards,
Kozure
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|