Search found 369 matches

by mark bower
Apr 20, 2020 21:30
Forum: Beginners
Topic: Geany compiled program will not execute on desktop [Solved]
Replies: 6
Views: 344

Re: Geany compiled program will not execute on desktop

I have been very dumb, or maybe I should say brain dead! The problem is simply that I expected the smaller program that I extracted from a much larger program to run in a terminal, when I selected its icon (the icon placed on the Desktop by Geany) for it on the Desktop. Wrong; its not going to open ...
by mark bower
Apr 20, 2020 1:56
Forum: Beginners
Topic: Geany compiled program will not execute on desktop [Solved]
Replies: 6
Views: 344

Re: Geany compiled program will not execute on desktop

o.k., I have provided the operating system. I lucked out and wrote a shell that I believe is working correctly( I am not adept at "shelling"). When executed within Geany, the shell program results in the "Permission denied" msg? shell "~/Desktop > hello" open "hell...
by mark bower
Apr 19, 2020 23:55
Forum: Beginners
Topic: Geany compiled program will not execute on desktop [Solved]
Replies: 6
Views: 344

Geany compiled program will not execute on desktop [Solved]

Using Geany 1.32, 64bit, Ubuntu 18.04.3. I pull a small section of a larger program into Geany, compile it, and run it in Geany by clicking on the cog wheel. No problem, the program opens in the terminal and runs as expected. However, when I go to the executable placed by Geany on the Desktop, the p...
by mark bower
Apr 14, 2020 20:20
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Re: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]

Thanks - this time I'm going to write myself a big fat note since I do not seem to remember!
by mark bower
Apr 14, 2020 20:17
Forum: Beginners
Topic: Using SHELL command.....
Replies: 4
Views: 1235

Re: Using SHELL command.....

@ counting_pine I have 2 multimeters connected to a PC via USB. When the computer boots, the port assignment is not consistent. So I modified your code (some years ago eh?) immediately below which addresses my needs to see which meter is connected to which port. In my case, 4 lines are read, but I o...
by mark bower
Apr 14, 2020 19:58
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Re: Single Key Press to Exit Do Loop and Change a Variable Value

And please, what do I access to mark as solved?
by mark bower
Apr 14, 2020 19:09
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Re: Single Key Press to Exit Do Loop and Change a Variable Value

o.k., badidea's code takes the cake. My program works great with the ability to gracefully exit with a key press. It involves a sub within a sub. With bananas set to any value other than 0 combined with the directive to exit in a lower level sub, the 2 value is passed to a higher level sub where tha...
by mark bower
Apr 14, 2020 15:18
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Re: Single Key Press to Exit Do Loop and Change a Variable Value

o.k., i believe badideas's code does exactly what i need. have to leave the house for a while; i will return later today after fully vetting.
by mark bower
Apr 14, 2020 14:57
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Re: Single Key Press to Exit Do Loop and Change a Variable Value

I modified per your suggestion, but get two error codes "expected . . ." Did I enter your suggestion correctly? do elapsedtime = Timer-Starttime 'if inkey <> "" then bananas =2 and exit do keypressed=inkey if keypressed="b" then bananas =2:exit do loop until elapsedtime...
by mark bower
Apr 14, 2020 14:22
Forum: General
Topic: Single Key Press to Exit Do Loop and Change a Variable Value [Solved]
Replies: 9
Views: 305

Single Key Press to Exit Do Loop and Change a Variable Value [Solved]

In a DO LOOP I need to intercept an "any key press" and give a variable a value as a result of that single key press. That is, both are accomplished with a single key press. In the code below I show what I would like to do. Is it possible, and if so, could you please supply the necessary c...
by mark bower
Mar 05, 2020 2:14
Forum: General
Topic: ON ERROR GOTO to display problem line
Replies: 63
Views: 2377

Re: ON ERROR GOTO to display problem line

o.k. - Thanks for that. I tried it and it works as well. And thanks again for putting up with me.
mark
by mark bower
Mar 04, 2020 3:18
Forum: General
Topic: ON ERROR GOTO to display problem line
Replies: 63
Views: 2377

Re: ON ERROR GOTO to display problem line

[work around] I apologize for not getting back sooner, a lot of frustration. I tried many combinations, but nothing was successful. In one series of runs, the program ran to completion 3 times in a row, seeming that I had the right syntax, but failed to complete on the 4th run. So while not elegant ...
by mark bower
Feb 24, 2020 15:43
Forum: General
Topic: ON ERROR GOTO to display problem line
Replies: 63
Views: 2377

Re: ON ERROR GOTO to display problem line

Yes, I now see my error. In working the problem and fxm's suggestions I had the fbthread.bi include, but goofed when distilling down to my very short code to play with ThreadCreate. Now back to address my main program again with that which works in the small code example - however, as you previously...
by mark bower
Feb 24, 2020 3:16
Forum: General
Topic: ON ERROR GOTO to display problem line
Replies: 63
Views: 2377

Re: ON ERROR GOTO to display problem line

I went to the link (been there too many times to count); I do not see anything on the ThreadDestroy page telling me to include the "symbols" /' and '/, nor where or what around? /' You need to include this if you want to use 'threadDetach()'. This is *clearly* stated in the Manual: https:/...
by mark bower
Feb 24, 2020 2:43
Forum: General
Topic: ON ERROR GOTO to display problem line
Replies: 63
Views: 2377

Re: ON ERROR GOTO to display problem line

I believe the best approach now is to get help with a small code example I have manipulated, but do not get ThreadDestroy to work. If ThreadDestroy is remmed, the code runs to completion; if included, then it cannot be complied with error the msg I included in the code lines. So I would appreciate a...

Go to advanced search