Re: [Gambas-user] EOF character seems not to work

2009-02-25 Thread Benoît Minisini
 I need to write an array of lines to a file, each ending in the EOL char
 for MAC, I used this code, it dosn't work, it ends up with the UNIX EOL.

 I must have my syntax wrong somehow:

 Dim hfile As file
   hfile.EndOfLine = gb.Mac

How can that line of code work? hFile is NULL, you must have got an error.

-- 
Benoît

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] EOF character seems not to work

2009-02-24 Thread richard terry
I need to write an array of lines to a file, each ending in the EOL char for 
MAC, I used this code, it dosn't work, it ends up with the UNIX EOL.

I must have my syntax wrong somehow:

Dim hfile As file  
  hfile.EndOfLine = gb.Mac
Open sFilename For Write Create As #hfile
 For Each singleLine In Lines
   
Print #hfile singleLine
 Next
Close #hfile

Any help appreciated.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] EOF character seems not to work

2009-02-24 Thread nando
MAC's want char 13 not 10 nor both
So, suppress the 10 by using the semicolon
and add the character 13 manually..as in..

Print #hfile, singleLine  chr$(13);

-Fernando


-- Original Message ---
From: richard terry rte...@pacific.net.au
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Wed, 25 Feb 2009 07:49:28 +1100
Subject: [Gambas-user] EOF character seems not to work

 I need to write an array of lines to a file, each ending in the EOL char for 
 MAC, I used this code, it dosn't work, it ends up with the UNIX EOL.
 
 I must have my syntax wrong somehow:
 
 Dim hfile As file  
   hfile.EndOfLine = gb.Mac
 Open sFilename For Write Create As #hfile
  For Each singleLine In Lines
 
 Print #hfile singleLine
  Next
 Close #hfile
 
 Any help appreciated.
 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
--- End of Original Message ---


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user