Search found 40 matches

by Jeff8888
Wed Sep 03, 2025 2:04 am
Forum: Coding Questions
Topic: stand alone exe fails
Replies: 2
Views: 448

Re: stand alone exe fails

Yes that worked, thanks.
by Jeff8888
Mon Sep 01, 2025 10:05 pm
Forum: Coding Questions
Topic: stand alone exe fails
Replies: 2
Views: 448

stand alone exe fails

This simple code fails when compiled to a standalone exe file. When I run the exe I get a bell sound when I try to enter a number. The program works fine when I run/compile. PB 5.3 and windows 10.

OpenConsole()
EnableGraphicalConsole(1)
ConsoleColor(15,1)
ClearConsole()

Print("Enter a limit for ...
by Jeff8888
Mon Feb 24, 2025 3:42 pm
Forum: Coding Questions
Topic: The compiler is not ready
Replies: 38
Views: 3987

Re: The compiler is not ready

I have noticed this too with PB 5.73 and Windows 10. With the task manager running I observed high use of antimalware service executable when loading PB. It ends when PB shows welcome on board. Time varies quite a bit. Hopefully as others have posted this will go away.
by Jeff8888
Mon Sep 16, 2024 5:16 pm
Forum: Coding Questions
Topic: Delete files
Replies: 2
Views: 639

Delete files

Just wanted to confirm for Deletefile(Filename$) that filename$ must be the full path name and not just the file name obtained from Nextdirectoryentry().

I am going thruough a directory and deleting files based on time of day they were created by a trail cam.
by Jeff8888
Fri Nov 10, 2023 4:35 am
Forum: Coding Questions
Topic: Reading mouse Coords while still seeing Windows pointer.
Replies: 8
Views: 1301

Re: Reading mouse Coords while still seeing Windows pointer.

You may need to use binding (see pb help file)
Here is a demo program I wrote that does this along x axis


;Demo program to plot x,y data using scaling
;Uses keyboard and scroll bar input to change plot

Global xsize.f,ysize.f,xleft.f,xright.f,ylow.f,yhigh.f,xratio.f,yratio.f,BottomMargin.f ...
by Jeff8888
Fri Oct 06, 2023 10:21 pm
Forum: Tricks 'n' Tips
Topic: Speed up division by instead using inverse and multiply
Replies: 14
Views: 2875

Re: Speed up division by instead using inverse and multiply

Hmm, I recall learning this trick in a Fortran class I took in 1967.
by Jeff8888
Sun Mar 26, 2023 3:21 pm
Forum: Feature Requests and Wishlists
Topic: ArraySize() reports upper bound, not size, of Array
Replies: 15
Views: 2405

Re: ArraySize() reports upper bound, not size, of Array

I noted that the help file for arraysize says Arraysize returns the array dimension and not the array size.
by Jeff8888
Fri Dec 02, 2022 5:33 pm
Forum: Feature Requests and Wishlists
Topic: For - Next - Step
Replies: 4
Views: 1200

Re: For - Next - Step

I assume there are valid reasons for step be a constant. Interesting to me is that stop value can be changed inside the for loop, I am not sure why one would want to do this. Here is code to show this:

first=1
last=10
For i=first To last
Debug i
Next
For i=first To last
last=last-1
Debug i
Next ...
by Jeff8888
Sun Oct 09, 2022 3:46 pm
Forum: Coding Questions
Topic: Justification of data in strings
Replies: 11
Views: 1475

Re: Justification of data in strings

If you would prefer to use proportional fonts, which look better, then you need to use different space size. Unicode offers different space sizes starting with characters 2000 (hex). Note size of normal space is 7, whereas for digits it is 13. So for example with Ariel fonts the appropriate space ...
by Jeff8888
Mon Jul 25, 2022 5:51 am
Forum: General Discussion
Topic: Show variable location with debugger
Replies: 3
Views: 727

Re: Show variable location with debugger

Variable viewer. I can find the address of a variable by putting the statement debug Str(@variable) in the program. It would be nice to have a way to do this directly in the debugger.
by Jeff8888
Sun Jul 24, 2022 11:13 pm
Forum: General Discussion
Topic: Show variable location with debugger
Replies: 3
Views: 727

Show variable location with debugger

When I use the debugger is there someway to show the location of a variable? In the help it states if there is an arrow beside to variable color code, then you can click on the variable is see its location. I don't seem to be able to get this to happen? Any ideas? Thanks
by Jeff8888
Tue Jul 05, 2022 2:57 pm
Forum: Coding Questions
Topic: Print in columns
Replies: 9
Views: 1676

Re: Print in columns

Use Rset() to right justify column entries with Chr($2007) for spacing. The code would be something like this.

Rset(string$,length,chr($2007))

Look up spacing of unicode character to see why this works.

Unicode character 2007 is known a figure space. It is a space character that is as wide as ...
by Jeff8888
Mon May 16, 2022 10:38 pm
Forum: Coding Questions
Topic: Datasection Data int,string,int,string....
Replies: 6
Views: 1308

Re: Datasection Data int,string,int,string....

Could you make the data section pairs of strings such as "1.0","abc",....etc. Then use Val() to convert first string of each pair to a number.
by Jeff8888
Tue May 03, 2022 6:58 pm
Forum: Coding Questions
Topic: Keyboard input
Replies: 7
Views: 1462

Re: Keyboard input

Try using keyboardreleased() instead of keyboardpushed().
by Jeff8888
Wed Apr 20, 2022 3:06 pm
Forum: Coding Questions
Topic: Get a string back from another program
Replies: 7
Views: 1387

Re: Get a string back from another program

I have used get and set environmentalvariable commands to pass strings. From PB help file for info:

SetEnvironmentVariable(Name$, Value$)
Description

Creates an environment variable in the environment block of this program with given name and value. If a variable with this name already existed ...