Search found 33 matches

by Fips
Fri Apr 25, 2025 6:44 pm
Forum: Coding Questions
Topic: RunProgramm cmd.exe Example
Replies: 9
Views: 1323

Re: RunProgramm cmd.exe Example

I believe you also could call the command directly like this:

Code: Select all

RunProgram("copy", "C:\text.txt D:\text.txt", "")
(I dont know about windows though, but i'm pretty sure i've called terminal commands like that with Linux.)
by Fips
Fri Mar 28, 2025 7:11 pm
Forum: Coding Questions
Topic: Quick question about DB Example program
Replies: 5
Views: 257

Re: Quick question about DB Example program

What you see is the Debug-Output window which is triggered by

Code: Select all

While NextDatabaseRow(0)
    Debug GetDatabaseString(0, 0)
Wend
For your application you will need to create a window via OpenWindow() etc.
by Fips
Sat Mar 15, 2025 8:58 pm
Forum: Coding Questions
Topic: Open a generated text file in Notepad++
Replies: 9
Views: 540

Re: Open a generated text file in Notepad++

Might be the space characters
Try

Code: Select all

f$=Chr(34) + fol+"File Explorer - "+fil+".txt" + Chr(34)
Debug f$
RunProgram("C:\Program Files\Notepad++\notepad++.exe",f$,fol,#PB_Program_Open)
by Fips
Sat Jun 01, 2024 10:44 pm
Forum: General Discussion
Topic: Get stock price
Replies: 2
Views: 1614

Re: Get stock price

I doubt that you actually retrieve the information you are looking for. You probably get a HTML document with some javascript functions but not your stock price.

Yahoo finance used to be cool but it seems they shut down their api some years ago. Some claim that in the US this might still work (cant ...
by Fips
Tue May 28, 2024 6:12 am
Forum: Coding Questions
Topic: after doing a DatabaseUpdate program shuts down
Replies: 11
Views: 2625

Re: after doing a DatabaseUpdate program shuts down

I cant test right now if that causes the problem but DatabaseUpdate() does not require a FinishDatabaseQuery().
by Fips
Tue May 14, 2024 8:02 am
Forum: The PureBasic Form Designer
Topic: Tab Panel - how to set focus Position for a Tab
Replies: 4
Views: 5939

Re: Tab Panel - how to set focus Position for a Tab

SetGadgetstate(#YourPanelGadgetnumber, 1)
by Fips
Tue May 14, 2024 7:13 am
Forum: The PureBasic Form Designer
Topic: Tab Panel - how to set focus Position for a Tab
Replies: 4
Views: 5939

Re: Tab Panel - how to set focus Position for a Tab

Don't know much about the Form Designer, but generally with SetGadgetState().
by Fips
Mon Mar 25, 2024 9:28 pm
Forum: Coding Questions
Topic: Use one menu for multiple windows
Replies: 9
Views: 1079

Re: Use one menu for multiple windows

Maybe you don't really need the same menue but could instead create several alike menues via a procedure like this:


EnableExplicit

Enumeration Windows
#Win_0
#Win_1
#Win_2
EndEnumeration

Enumeration Menues
#Menue_Close
#Menue_Test
EndEnumeration


Procedure onCloseWindow()
Protected.i ...
by Fips
Sun Jun 18, 2023 10:13 am
Forum: Feature Requests and Wishlists
Topic: Get TreeGadget full path suggestion
Replies: 19
Views: 2698

Re: Get TreeGadget full path suggestion

-1

After all TreeGadget is not ExplorerTreeGadget (which can get the full path of the selected item by GetGadgetText() )

You can display all sorts of Information in Treegadget for instance a hierarchical structure of the employees of a company. I think in that case this would not be usefull.

I ...
by Fips
Mon Jun 12, 2023 2:44 pm
Forum: General Discussion
Topic: address to latitude and longitude?
Replies: 5
Views: 883

Re: address to latitude and longitude?

Hi,

I usually use something like this:


Structure Address
street.s
zipcode.s
city.s
Country.s
EndStructure

Structure Coordinates
lat.s
lon.s
EndStructure



Procedure.i GetCoordinatesFromAddress(*Address.Address, *Coordinates.Coordinates)
Protected.i HttpRequest
Protected.s request ...
by Fips
Thu Jun 08, 2023 5:04 pm
Forum: Coding Questions
Topic: Moving ListView Gadget Items
Replies: 5
Views: 720

Re: Moving ListView Gadget Items


Global Window_0, ListView_0, Button_1, Button_2, Button_3, Button_4, Button_5

Procedure Switch_Lines(gad_num.i, line_1.i, line_2.i)
Protected.s text_line_1, text_line_2

text_line_1 = GetGadgetItemText(gad_num, line_1)
text_line_2 = GetGadgetItemText(gad_num, line_2)


SetGadgetItemText ...
by Fips
Fri Jun 02, 2023 10:07 am
Forum: Coding Questions
Topic: Bindevent and Modules
Replies: 2
Views: 421

Re: Bindevent and Modules

Hi jacdelad,

I was not aware of this.
So no Module issue at all.
Thanks for your explanation.

Greetings

Fips
by Fips
Fri Jun 02, 2023 8:30 am
Forum: Coding Questions
Topic: Bindevent and Modules
Replies: 2
Views: 421

Bindevent and Modules

Hi everyone,

I'm having a problem when binding an event inside a module.

First of all I'd like to know if it is in general ok to have several bindEvents for the same event:

BindEvent(#PB_Event_CloseWindow,@function_1(), 1)
BindEvent(#PB_Event_CloseWindow,@function_2(), 1)


It seems to work ...
by Fips
Thu Mar 09, 2023 12:45 pm
Forum: Feature Requests and Wishlists
Topic: Editor-Extension
Replies: 8
Views: 1146

Re: Editor-Extension

Thanks! That was it. I overlooked the checkbox in there.