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...@lists.sourceforge

[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

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

2011-04-15 Thread Jeff Halverson
in the 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 help. If I have

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 is puzzling me that seems easy to do

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: I have

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

2011-04-12 Thread Jeff Halverson
to the resultset value? Maybe something like: FieldToSearchFor = DataSummary!RegionName IF TextToSearchFor = Evaluate(FieldToSearchFor) THEN ' Do a bunch of stuff END IF Obviously the above doesn't work, but is there some means in Gambas to achieve this result? Any help is greatly appreciately. Jeff H

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)

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 = new var

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

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, quite validly

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] 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(sBin)

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? I am ok.

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 something to

[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 is

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 = OPEN ./wxaprs.ini FOR INPUT This fails with access forbidden DIM

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 not be able to do