Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
17%
200 - 500 GB
17%
500 - 800 GB
6%
800 - 1200 GB
6%
1200 - 1500 GB
17%
1500 - 2000 GB
17%
> 2000 GB
22%
Total votes: 18

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2018, 11:56
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 37
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Question file read
Baan: Other/Unknown
C/S: None/Unknown

hii..i'm new foe LN programming ...
is there any possible for reading a entire file with in single line from clien machine.?????
i did use while loop for reading entire file but it does not work ...it read again and again same record ..


seq.read.local(record,size,fp)
while len(strip$(record)) > 0
seq.write.local(record,size,fp1)
record=""
seq.read.local(record,size,fp)
endwhile

any thing wrong in this ??
Reply With Quote
  #2  
Old 14th June 2018, 15:27
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,122
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
I always had issues reading from the client(that was 15-20 years ago) so what I always did, and still do, is use server2client to move the file to the server and read it from there. That always worked best for me.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 14th June 2018, 21:38
hklett's Avatar
hklett hklett is offline
Member
 
Join Date: May 2002
Posts: 54
hklett is on a distinguished road
if you are at end of the file, the buffer will left unchanged.
Your loop have to be
while seq.read.local(record,size,fp) = 0
...
endwile
Reply With Quote
Sponsored Links
  #4  
Old 18th June 2018, 08:14
AnuKass AnuKass is offline
Member
 
Join Date: May 2018
Posts: 37
AnuKass is on a distinguished road
Baan: 9.2 - DB: sql - OS: windows10
Thank you ..to all ..
i use client2server method it's work perfectly ..
Reply With Quote
  #5  
Old 19th June 2018, 14:16
klesch's Avatar
klesch klesch is offline
Member
 
Join Date: Jul 2002
Location: Ljubljana, Slovenia
Posts: 90
klesch is on a distinguished road
Baan: Baan IV c4, LN from FP3 to 10.6 - DB: Does not matter to me. - OS: Linux, Windows
Please, have in mind that client2server will not work in LN UI.
Reply With Quote
Reply


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
Programming Question mr_suleyman Tools Development 37 11th November 2016 08:14
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 11:35
Return value -2 on seq.open mmtmalone Tools Development 2 8th January 2014 22:03
Read file on network learner Tools Development 5 3rd March 2010 21:25
bshell received SIGTERM manojsharma Tools Development 11 5th June 2008 09:22


All times are GMT +2. The time now is 08:19.


©2001-2018 - Baanboard.com - Baanforums.com