Re: [Gambas-user] Gambas-user Digest, Vol 128, Issue 13

2017-01-11 Thread Jeff Zacher
> Your mail is seen as spam, raise it with this answer. > "Test" what kind of file it is? Just a test file and I 'echo "stuff" > test' or 'echo "Other stuff" >> test' from another shell. On 01/10/2017 02:46 PM, gambas-user-requ.

[Gambas-user] Open File for Watch Read Past EOF

2017-01-09 Thread Jeff Zacher
I am using Gambas 3.9.1 If I open a file for watch: hFile = Open "test" For Read Write Watch The _Read() event gets the first byte written to the file just fine. But after, no changes to the file fire the read event. So as a workaround, just close the file and reopen? On second read the _Read()

[Gambas-user] Gambas Examples/Tutorials

2017-01-06 Thread Jeff Zacher
Are there any basic Gambas example projects/tutorials or is this a need. I looked on the Tutorials page on the wiki and it of course says 'not finished' and the link to working with files is dead. If there are no examples/tutorials who is providing these and how can we contribute? More to the poin

Re: [Gambas-user] Help to make on the fly pointer to various result sets

2011-04-15 Thread Jeff Halverson
documentation? Jeff H On Wed, 2011-04-13 at 10:50 +0930, Bruce Bruen wrote: > On Wednesday, April 13, 2011 09:21:05 AM Jeff Halverson wrote: > > I have something that is puzzling me that seems easy to do, but I can't > > figure it out... I was hoping somebody might be able to

Re: [Gambas-user] Help to make on the fly pointer to various result sets

2011-04-13 Thread Jeff Halverson
Thanks, this is exactly what I was looking for. I knew there must be a way to do this and am suprised I missed the Results[String] formating option! Jeff H Tokyo On Wed, 2011-04-13 at 10:50 +0930, Bruce Bruen wrote: > On Wednesday, April 13, 2011 09:21:05 AM Jeff Halverson wrote: > &g

Re: [Gambas-user] Help to make on the fly pointer to various result sets

2011-04-13 Thread Jeff Halverson
in a subsequent response to use the form of "ResultName[String]" in lieu of "ResultName!ResultField". Thanks! Jeff H Tokyo On Wed, 2011-04-13 at 10:19 +1000, richard terry wrote: > On Wednesday 13 April 2011 09:51:05 Jeff Halverson wrote: > > I have something that i

[Gambas-user] Help to make on the fly pointer to various result sets

2011-04-12 Thread Jeff Halverson
esult? Any help is greatly appreciately. Jeff H Tokyo -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth

Re: [Gambas-user] define data-variable as record

2009-04-25 Thread Jeff
Same as the other answers - define a class. It's a good habit to get into to write accessor methods (set and get) or use properties rather than public variables. On Sat, 2009-04-25 at 01:55 -0700, juelin wrote: > hello, > it is possible to define a record into gambas? > thats mean a variable with

[Gambas-user] Logical operators

2009-04-23 Thread Jeff
If I write: IF expr1 OR expr2 THEN If expr1 evaluates to TRUE does the OR return TRUE or does it still go on to evaluate expr2? -- Stay on top of everything new and different, both inside and around Java (TM) technolog

Re: [Gambas-user] dynamic classes?

2009-04-21 Thread Jeff
Try: var = Class.Load("myclassname") On Tue, 2009-04-21 at 15:51 +0200, Stefan Miefert wrote: > Hello, > > how can i creat a class having a dynamic name? > > for example. > > I have some classnames in my database and want now do this > > DIM cclass as class > Dim var = "myclassname" > Class

Re: [Gambas-user] More null problems

2009-04-20 Thread Jeff
I agree with Stephen's third button option. I don't think check boxes are right as you can't be both simultaneously (except maybe in some speciality bars and clubs). Radio buttons are the right way to go. You may be able to get the behaviour you're asking for if you delete and recreate the control

Re: [Gambas-user] handling database nulls

2009-04-15 Thread Jeff
On Wed, 2009-04-15 at 16:19 +0800, Werner wrote: > Bruce wrote: > > This has sort of been asked before. However, the answers I have found > > haven't > > helped. > > > > My database has a LOT of integer fields, arranged into sets of fieldwork > > results. The majority of them contain nulls, qui

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Jeff Gray
That's pretty cool. My only comment would be that it took me a few goes at stepping through the code before I worked out how the blazes it worked, so perhaps less readable than the exponent version. But hey - I'm no rocket scientist :-) > From: ron...@tiscali.nl > > > > function bin2dec(s

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Jeff
Gah - you just beat me :-) Mine is as follows. Interesting to see different styles/solutions: PRIVATE FUNCTION myBin(binString AS String) AS Long DIM i AS Integer DIM length AS Integer DIM binResult AS Long = 0 length = Len(binString) FOR i = length TO 1 STEP -1 binResult =

Re: [Gambas-user] LinkedIn

2009-04-12 Thread Jeff
Cool. I have set it up. It will be interesting to see how many join. On Sat, 2009-04-11 at 22:28 +0200, BenoƮt Minisini wrote: > > Hey Benoit > > I thought about setting up a group on LinkedIn for Gambas users. Could > > help to spread the word. Are you ok with it or would you rather not? > > > >

[Gambas-user] LinkedIn

2009-04-11 Thread Jeff
Hey Benoit I thought about setting up a group on LinkedIn for Gambas users. Could help to spread the word. Are you ok with it or would you rather not? -- This SF.net email is sponsored by: High Quality Requirements in a

Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Jeff
> But during the long years now I have written programs :-) I found that we > most > often test for errors than success. So using TRUE for errors leads to less > lines of code. > > It is just a matter of habit. And changing habits is a good thing, it keeps > you young. :-) > I need somethin

[Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Jeff
What is the thinking behind a Result.MoveFirst() and MoveNext() returning a false if a record is there? So, to read round a result set I end up using a Boolean with a double negative: noMoreRows = myResult.MoveFirst() WHILE NOT noMoreRows PRINT myResult!id noMoreRows = myResult.MoveNext() WEN

[Gambas-user] Warning newby questions

2009-03-31 Thread Jeff Gray
1. Can anyone point me towards some help with splits, panels and expanders? THe help I have read doesn't seem to go into depth and I can't see any obvious methods to add items to them. 2. What's the difference between using qt or gtk? __

[Gambas-user] Combo box

2009-03-12 Thread Jeff
Hi All, First post, so forgive me newbie-ness. If I use the add method to add rows to a combo box I specify an index: Eg: ComboBoxProjects.Add("ZZ", 0) ComboBoxProjects.Add("AA", 1) Then in a button click event I use the index property to get the selected row: PRINT ComboBoxProjects.Index This

Re: [Gambas-user] Path for open file write

2008-07-06 Thread Jeff Johnson
Pharm out...That is what I needed to know.. Thanks a bundle On Sunday 06 July 2008 15:21:36 Benoit Minisini wrote: > On dimanche 06 juillet 2008, Jeff Johnson wrote: > > My program also recreates html pages as the program runs, so am I correct > > in thinking that I will no

Re: [Gambas-user] Path for open file write

2008-07-06 Thread Jeff Johnson
July 2008 13:23:46 Benoit Minisini wrote: > On dimanche 06 juillet 2008, Jeff Johnson wrote: > > I know this has probably been replied to many times. > > > > This works > >hFile = OPEN "wxaprs.ini" FOR INPUT > > > > This works > >hFile = OP

[Gambas-user] Path for open file write

2008-07-05 Thread Jeff Johnson
I know this has probably been replied to many times. This works hFile = OPEN "wxaprs.ini" FOR INPUT This works hFile = OPEN "./wxaprs.ini" FOR INPUT This fails with access forbidden DIM hFile1 AS File hFile1 = OPEN "./wxaprs.ini" FOR OUTPUT CREATE This fails with access forbidden DIM hFi

[Gambas-user] Path for open file write

2008-07-05 Thread Jeff Johnson
I know this has probably been replied to many times. This works hFile = OPEN "wxaprs.ini" FOR INPUT This works hFile = OPEN "./wxaprs.ini" FOR INPUT This fails with access forbidden DIM hFile1 AS File hFile1 = OPEN "./wxaprs.ini" FOR OUTPUT CREATE This fails with access forbidden DIM hFi

[Gambas-user] FTPClient

2008-06-09 Thread Jeff Johnson
Does anyone know how to use this control? I am able to get it to login in, but putting a file is not working. Also, how am I to to a remote change directory. Any advice would be welcome. - Check out the new SourceForge.net