Search found 1079 matches

by Marc56us
Wed Oct 13, 2021 11:01 am
Forum: Bugs - Linux
Topic: UnixODBC and Debian 11 Bullseye is not working?
Replies: 2
Views: 395

Re: UnixODBC and Debian 11 Bullseye is not workin?

I think everyone knows, but just in case, a tip for beginners :!: (Not the solution here), but in all case, avoid put function after Debug (because all the line will be ignored when running with Debug Off or in compiled mode) ; No Debug OpenDatabase(... ; Yes ReturnValue = OpenDatabase(... Debug Ret...
by Marc56us
Wed Oct 13, 2021 10:52 am
Forum: Coding Questions
Topic: How to call this procedure ?
Replies: 1
Views: 262

Re: How to call this procedure ?

Perhaps this ? Structure PERF CV.a VM.a VL.a VD.a EndStructure Global Dim prf.PERF(15) Global Dim ctm.PERF(15) Procedure Fill(Array a.PERF(1)) ; Corrected Protected n.i For n=0 To 15 a(n)\CV= n * 2 Next n EndProcedure Fill(prf()) Debug prf(7)\CV ; Corrected Fill(ctm()) Debug ctm(3)\CV ; Corrected ; ...
by Marc56us
Sat Oct 09, 2021 5:30 pm
Forum: Coding Questions
Topic: Beginner questions about file associations and command line parameters from opening a file
Replies: 4
Views: 490

Re: Beginner questions about file associations and command line parameters from opening a file

... i'd like to set file associations for support archives and to be able to open my program by double clicking an archive or right clicking a file or folder in Explorer... In Windows there is Assoc and Ftype , but this is command line tools. (RunProgram) :wink: Yea, i saw another post where you me...
by Marc56us
Sat Oct 09, 2021 4:07 pm
Forum: Coding Questions
Topic: Beginner questions about file associations and command line parameters from opening a file
Replies: 4
Views: 490

Re: Beginner questions about file associations and command line parameters from opening a file

jn2002dk wrote: Sat Oct 09, 2021 11:50 am ... i'd like to set file associations for support archives and to be able to open my program by double clicking an archive or right clicking a file or folder in Explorer...
In Windows there is Assoc and Ftype, but this is command line tools. (RunProgram)
:wink:
by Marc56us
Sat Oct 09, 2021 8:57 am
Forum: Bugs - Documentation
Topic: [No bug] GetURLPart() / SetURLPart()
Replies: 2
Views: 643

Re: [PB 5.73] GetURLPart() / SetURLPart()

see Reference Manual: https://www.purebasic.com/documentation/http/geturlpart.html https://www.purebasic.com/documentation/http/seturlpart.html Parameter is a numerical value, not a string. So writing "Parameter $ " in the documentation is inconsistent and irritating. Parameter is a strin...
by Marc56us
Fri Oct 01, 2021 9:28 am
Forum: Bugs - Windows
Topic: HttpRequest and Mysql DATABASE
Replies: 21
Views: 1530

Re: HttpRequest and Mysql DATABASE

What i want to say is that the var ouverture contains 0 instead of a number > 0 According to help at the opening when the programm return 0 says hat there is an error and i don'understant the error because when i want to analyse the error the error log is empty All the logs? In a 3-tier architectur...
by Marc56us
Thu Sep 30, 2021 5:50 pm
Forum: Coding Questions
Topic: Check if a file exists somewhere in the path
Replies: 6
Views: 712

Re: Check if a file exists somewhere in the path

where (= 'which' on un*x) C:\>where notepad C:\Windows\System32\notepad.exe C:\Windows\notepad.exe where where C:\Windows\System32\where.exe Compiler = RunProgram("where", "notepad", "", #PB_Program_Open | #PB_Program_Read) Output$ = "" If Compiler While Progr...
by Marc56us
Fri Sep 24, 2021 10:24 am
Forum: Announcement
Topic: My Wifi Keys (fr-uk-de compatible)
Replies: 15
Views: 2285

Re: My Wifi Keys

Same thing if you use command ligne version in CMD ?
C:\> netsh wlan show profile name=<SSID WiFi> key=clear
replace <SSID WiFi> with your SSID

PS. For PB Windows english version:

Code: Select all

If FindString(t$,"Key Content")    ;     "Contenu de la cl")
by Marc56us
Fri Sep 24, 2021 9:48 am
Forum: Announcement
Topic: My Wifi Keys (fr-uk-de compatible)
Replies: 15
Views: 2285

Re: My Wifi Keys

Hi, If the interface does not display anything (no error), it means that the default connection is not on the WiFi card, but on another one (network cable) This program show the password of the active connection only (default connection). Of course this works only if your are connected on this conne...
by Marc56us
Sat Sep 18, 2021 10:31 am
Forum: General Discussion
Topic: SQLite Query returned as JSON array
Replies: 7
Views: 1344

Re: SQLite Query returned as JSON array

What I needed was a method to extract data that was not in JSON format and convert the result to JSON which is what the command I quoted accomplishes. (Edited version without use of json lib. This version output the same thing as SQLite3 -json ...) ; Quick and dirty but full sample for output SQLit...
by Marc56us
Tue Sep 14, 2021 9:23 am
Forum: Linux
Topic: Software on linux...
Replies: 10
Views: 1843

Re: Software on linux...

First of all, follow mk-soft suggestion: :wink: start the application in the terminal window (./[Application]. This will show you what special libraries might be missing. and any other error message. PS. A tar archive is not a compressed file by default. See https://en.wikipedia.org/wiki/Tar_(comput...
by Marc56us
Sat Sep 11, 2021 4:24 pm
Forum: Off Topic
Topic: Spam Posts
Replies: 2
Views: 1524

Re: Spam Posts

They are now often not robots, but humans paid a few cents to do the job. Some are paid only to create the accounts (~20 cents per account), then the robots do the rest. No captcha or other technique can resist them. The only effective way to block them is to make sure that every new user is in the ...
by Marc56us
Wed Sep 08, 2021 9:39 am
Forum: Coding Questions
Topic: ProgramExitCode(), but as a string
Replies: 16
Views: 1524

Re: ProgramExitCode(), but as a string

In that case you guys can delete your posts [...] StarWarsFan, please don't shout: If you have already tried, you will see that you can only delete your answer if it is the last one in the topic. You can edit it or clear it, but as you can see after you have edited your secont post (//), following ...
by Marc56us
Wed Sep 08, 2021 9:13 am
Forum: Coding Questions
Topic: ProgramExitCode(), but as a string
Replies: 16
Views: 1524

Re: ProgramExitCode(), but as a string

Demivec wrote: Wed Sep 08, 2021 9:01 am Doesn't that function only to send or provide information from a parent process to a child process and not the other way around?
Yes, this seems to be the case in PB :cry: . I just tested (including with an EXE launched from the same CMD.)
But it works in other languages. :|
by Marc56us
Wed Sep 08, 2021 8:53 am
Forum: Coding Questions
Topic: ProgramExitCode(), but as a string
Replies: 16
Views: 1524

Re: ProgramExitCode(), but as a string

StarWarsFan wrote: Wed Sep 08, 2021 8:27 am But how do I then send back a string to the calling programm?
SetEnvironmentVariable()
:wink: