Search found 17 matches

by mikejp56
Tuesday 23rd November 2021 6:59pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi Guys, I have attached 3 screenshots from this problem. From IDE.png From executable.png Executable file.png 1) From IDE is from the GAMBAS environment. Both text areas are filled in. 2) From executable is from the executable generated by the IDE. The textarea for the CPU is blank. 3) This is wher...
by mikejp56
Tuesday 23rd November 2021 6:15pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi Guys,
So if I run the sub without the grep statement, it runs fine; it just gives the entire command output. When I run the sub with the grep statement, the text area or text box is empty.
Why would grep break this?
Regards,
mikejp56
by mikejp56
Tuesday 23rd November 2021 3:20pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi grayghost4, Thanks so much for your help. That nailed it! But why do I need to use "Quote" instead of just using "TextArea.Text=Result100"? I have used this on other parts of this project with no problems. Thanks again. Is there a list or a document that has ALL of the keyword...
by mikejp56
Tuesday 23rd November 2021 1:02pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi BruceSteers, I tried your change using sText, so my code now looks like this: Public Sub Button4_Click() Dim Result100 As String Shell "inxi -C -c 0" To sText TextArea100.Text = Quote(sText) End WhenI run it I get "Unknown identifier: sText. Perhaps we have different versions of Ga...
by mikejp56
Monday 22nd November 2021 6:14pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi stevedee and BruceSteers, One other thing that I forgot to mention, in the Warnings pane at the bottom I get the following: Class name hidden by global declaration. Then it refers to Class form4 and line 9. Here is the first bunch of lines of form4.class: ' Gambas class file Public Sub Button42_C...
by mikejp56
Monday 22nd November 2021 2:33pm
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Re: Works in IDE; not when made as an executable

Hi stevedee, This is what I get when I run inxi -C: $ inxi -C CPU: Info: Dual Core model: AMD A4-3300M APU with Radeon HD Graphics bits: 64 type: MCP cache: L2: 2 MiB Speed: 799 MHz min/max: 800/1900 MHz Core speeds (MHz): 1: 799 2: 804 This properly displays AMD A4-3300M APU with Radeon HD Graphics...
by mikejp56
Monday 22nd November 2021 1:26am
Forum: General
Topic: Works in IDE; not when made as an executable
Replies: 19
Views: 7813

Works in IDE; not when made as an executable

I am writing an application as an exercise that displays different information about my PC, such as Linux version, available hardware, installed repositories, etc. I have 3 separate screens for 3 different types of data. The data is obtained by using "Shell" and then terminal commands. The...