Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 26th August 2002, 22:22
noname noname is offline
Junior Member
 
Join Date: Jun 2002
Location: Tralfamador
Posts: 15
noname is on a distinguished road
Question Script Editing with Wordpad

Hello. We use Wordpad as our editor for scripts and each time I open a script it is all jumbled - no formatting I suppose. I know we could switch editors but for the moment we will stick with Wordpad. Is there a way to ensure the text is formatted so that it is more readable. This jumbling occurs even when the code is generated by Baan.
Thanks
  #2  
Old 26th August 2002, 23:45
benito's Avatar
benito benito is offline
Guru
 
Join Date: Jan 2002
Location: Eastern US
Posts: 514
benito is on a distinguished road
Baan: ERPLn 10.2.1 / BaanIVc4 - DB: Oracle11/Informix - OS: Unix/Linux
Notepad

Try notepad instead.

I personally like vi.

cheers.
  #3  
Old 27th August 2002, 00:50
~Vamsi's Avatar
~Vamsi ~Vamsi is offline
Guru
 
Join Date: Aug 2001
Location: San Diego CA, USA
Posts: 590
~Vamsi will become famous soon enough
Baan: ~*~ - DB: ~*~ - OS: ~*~
What version of Windows? What is the o/s on which Baan server resides. I would like to hazard a guess that wordpad is not recognizing end of line characters. And this is because you are running Baan on a Unix server and an old version of Wordpad (Win 95?).

That was sticking my neck way out, will wait for some more info from you . A screenshot of your jumbled code would be nice.
__________________
~Vamsi
Vamsi Potluru
Baan XL Yet another tool to format Baan output in Excel from Baan Board
This one just happens to be free :)

Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
  #4  
Old 27th August 2002, 03:50
noname noname is offline
Junior Member
 
Join Date: Jun 2002
Location: Tralfamador
Posts: 15
noname is on a distinguished road
Hi. The o/s of the Baan server is NT, the local machine is W2000. I think it isn't recognising the end of line chars or any formatting chars as it does wrap but seemingly randomly.
I was hoping there might be some setting in Baan that might help 'beautify' the code, because although it does compile it doesn't look like it should.
Sorry ~Vamsi but at the moment can't attach a screenshot but thanks for sticking your neck out
  #5  
Old 28th August 2002, 12:48
Smiffy's Avatar
Smiffy Smiffy is offline
Member
 
Join Date: Oct 2001
Location: UK
Posts: 64
Smiffy is on a distinguished road
Baan: Baan IV - DB: Baan - Oracle - OS: UNIX
dont use wordpad

I had the same problem once. I found that if different developers were using wordpad & notepad, scripts were being corrupted by wordpad. You can end up losing all previous development. Don't use wordpad !
  #6  
Old 28th August 2002, 13:05
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 1,072
OmeLuuk is on a distinguished road
Baan: Infor LN 6.1 10.2.1 - DB: MS SQL2008 - OS: VM WindowsServer2008R2
Install solution 126998 and try again with Notepad, or use gvim (vi for NT: http://www.vim.org)
__________________
Also read Luke 24:4-8
  #7  
Old 28th August 2002, 16:35
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Scite

I am suprised ~Vamsi did not recommend Scite in his post. Follow this link. It is the best editor I have used.

Mark
  #8  
Old 28th August 2002, 19:36
noname noname is offline
Junior Member
 
Join Date: Jun 2002
Location: Tralfamador
Posts: 15
noname is on a distinguished road
Thanks to all who have replied.
I have downloaded the scite editor and will give it a try, but I would like to understand why wordpad behaves as it does. It unfortunately isn't a case of some people using notepad and others using wordpad. I might install solution 126998 but again I think it is something I am doing wrong somewhere. Here is a picture of what happens - I have generated a script for this purpose. I have tried the various but limited wrapping options in Wordpad to no avail.
Regards.
Attached Files
File Type: doc jumbled.doc (35.0 KB, 47 views)
  #9  
Old 29th August 2002, 09:34
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 1,072
OmeLuuk is on a distinguished road
Baan: Infor LN 6.1 10.2.1 - DB: MS SQL2008 - OS: VM WindowsServer2008R2
Solution 126998:
Quote:
SITUATION DESCRIPTION:
When Editing a source on a NT system the source is not correctly converted from
the binairy mode as it is stored on the server to the text mode on the client.
Therefor the text is not readable when using notepad for source editing.

SOLUTION DESCRIPTION:
Conversion is now done correctly. And sources are also writen back on the
server in binairy mode.
It delivers (a.o.) a dllfilehand that stores in Unix format instead of in NT format.

Wordpad should be able to read chr$(10) as a chr$(13)&chr$(10) sequence and show formatting as correct lines. May depend on your windows version. Anyway I spoke to Geert van der Wal (PEG programmer who is responsible for the standard functions of Baan) and we decided that the files needed to be stored in UNIX format on the server - even if it is a NT box. The sessions should add chr$(13) in file transfer to client and strip them afterwards.

So editing should be done with the Baan sessions (and then with either Notepad, Wordpad, any other ASCII editor) or when you want to do it directly on the scripts on disk you must need a "Unix-format aware" ASCII editor.

The script attached shows two problems, one being the "longline" problem where chr$(10) is not detected as a end-of-line character. This has been dealt with in the above solution.

There is another problem, which is line width. Originally the vi on Unix limited the line width to 80 characters, being the width of a terminal screen. But since external editors became widely used, this 80 charachter limit was no problem anymore. Now with Wordpad you find yourself in wrapping long lines. Select a font setting small enough to have no problems with lines as long as 132 charachters to overcome this problem. Be sure to select a non-proportional font.
__________________
Also read Luke 24:4-8
  #10  
Old 29th August 2002, 18:26
~Vamsi's Avatar
~Vamsi ~Vamsi is offline
Guru
 
Join Date: Aug 2001
Location: San Diego CA, USA
Posts: 590
~Vamsi will become famous soon enough
Baan: ~*~ - DB: ~*~ - OS: ~*~
Why not SciTE?

Mark wrote:
Quote:
I am suprised ~Vamsi did not recommend Scite in his post
I did not tout SciTE because:

noname wrote:
Quote:
I know we could switch editors but for the moment we will stick with Wordpad.
Thanks to Lucas for the solution. I figured it had to do with the endofline characters. But did not know enough to suggest a solution .
__________________
~Vamsi
Vamsi Potluru
Baan XL Yet another tool to format Baan output in Excel from Baan Board
This one just happens to be free :)

Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Sponsored Links
  #11  
Old 29th August 2002, 19:53
Armando_Rod2000's Avatar
Armando_Rod2000 Armando_Rod2000 is offline
Member
 
Join Date: Aug 2002
Location: Venezuela
Posts: 31
Armando_Rod2000 is on a distinguished road
Baan: V40c2 - DB: Oracle - OS: Windows
I recomend to use the pfe32 editor.

Check this editor: cool!!!! You can download it here:

http://www.geocities.com/thestarman3/tool/pfe/PFE32.htm
  #12  
Old 30th August 2002, 19:41
dbinderbr's Avatar
dbinderbr dbinderbr is offline
Member
 
Join Date: May 2002
Location: Brazil-Sao Paulo
Posts: 81
dbinderbr is on a distinguished road
Baan: Baan IV c3/c4 and V - DB: SQL Server, Oracle, Informix - OS: HP Unix, Windows 2k
Lightbulb Another editor.

Hello,

Use the WinVI, it's the best editor to use with Baan for NT/2000 or Unix environments.

It is a freeware software. Please downlaod it from:

http://www.winvi.de/en/
__________________
Best Regards,

Daniel C Binder
  #13  
Old 30th August 2002, 21:10
patvdv's Avatar
patvdv patvdv is offline
Board Master
 
Join Date: Aug 2001
Location: Belgium
Posts: 2,167
patvdv is on a distinguished road
Baan: n/a - DB: n/a - OS: AIX, HP-UX, Linux
Thumbs up Download URL of editors

Hi guys,

I replaced your original program attachments with URL's where you can download them. That way people will always have to latest version and we can save space on our forum. If you have better download links then please add them to your post.
__________________
Regards,

Patrick Van der Veken - Admin & Founder - (c) 2001-2017 baanboard.com/baanforums.com
  #14  
Old 30th August 2002, 21:45
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 1,072
OmeLuuk is on a distinguished road
Baan: Infor LN 6.1 10.2.1 - DB: MS SQL2008 - OS: VM WindowsServer2008R2
Post Instead of this war on an off topic thread

Everybody likes his own editor best.
No use in trying to convince others,... what is true for dentists (they'd rather brush their own tooth with the toothbrush of their fellow dentist than use the same method as the other dentist) is true for a lot of programmers and other computer nerds.

I still like wp5.1 alot, though you don't see it a lot nowadays.

If someone has enough guts to start a new thread on why to use which editor, please all join that thread.

But this thread can be closed, because for the error in the (report)scripts that got corrupted when edited with notepad, it is past tense. See my contribution above.
__________________
Also read Luke 24:4-8
  #15  
Old 30th August 2002, 22:07
patvdv's Avatar
patvdv patvdv is offline
Board Master
 
Join Date: Aug 2001
Location: Belgium
Posts: 2,167
patvdv is on a distinguished road
Baan: n/a - DB: n/a - OS: AIX, HP-UX, Linux
Omeluuk,

You're right. I will close this thread. Feel free to open a new one discussing editors
__________________
Regards,

Patrick Van der Veken - Admin & Founder - (c) 2001-2017 baanboard.com/baanforums.com
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code: Sample Qkey Script mark_h Code & Utilities 7 9th December 2013 14:33
Variable value different in pgm. script & report script ? PacSun Tools Development 5 28th June 2006 19:09
Post script or PDF file bvallepalli Open World, Portal & Decision Manager 1 11th March 2004 18:59
CODE: AWKward Script for Baan Reports' passage to MS Excel sitarammani Code & Utilities 19 31st August 2002 16:50


All times are GMT +2. The time now is 14:09.


©2001-2017 - Baanboard.com - Baanforums.com