iscons
24th October 2016, 20:19
Baan is on Unix
Baan client is on windows 7 (BW)
The session has a field called path to enter the file path - C:\Test\file.txt
When in debug mode, the path has extra \ added to it for some reason - C:\\Test\\file.txt
so the file can not be opened.
any idea?
bhushanchanda
24th October 2016, 21:43
Hi,
No problem with that. The debugger will show you "\\" for a single "\"
Check if the folder and file have full permissions for "Everyone" and also check if the file and path exists. Post your code if possible.
Ajesh
25th October 2016, 09:46
seq.open.local is deprecated.
seq.open.local()
Syntax:
#include <bic_desktop>
function long seq.open.local (string filename, string mode(2) [, long remove.after.use])
Description
Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use functions: server2client() or client2server().
This opens a specified file on the client system. It returns a file pointer, which you can use to identify the file in subsequent operations.
mark_h
25th October 2016, 19:39
seq.open.local is deprecated.
seq.open.local()
Syntax:
#include <bic_desktop>
function long seq.open.local (string filename, string mode(2) [, long remove.after.use])
Description
Deprecated. This function is only supported for Baan Windows and its usage is therefore deprecated. Instead you should use functions: server2client() or client2server().
This opens a specified file on the client system. It returns a file pointer, which you can use to identify the file in subsequent operations.
I think it depends on the version. This still works for us, but we do not use it.
bhushanchanda
26th October 2016, 12:33
Rightly said Mark. It depends on the version. I have used it before but always thought its better to do a client2server() first and then use seq.* functions to manipulate client files.
mark_h
26th October 2016, 15:01
Actually we do use it - but only to open the file to make sure it exists. Then we use the client2server command to transfer it up to the server. Not really sure why we do that, but we do.
iscons
28th October 2016, 00:02
Actually we do use it - but only to open the file to make sure it exists. Then we use the client2server command to transfer it up to the server. Not really sure why we do that, but we do.
Hi, yes I used it to verify the file exists locally. It was an issue that windows put the txt extension on the file I had named already with .txt
bhushanchanda
28th October 2016, 11:43
To avoid confusions in future you can modify your computer properties by going to - Tools(In My Computer) -> Folder Options -> View Tab -> Uncheck option "Hide extensions for known file types"