Search found 79 matches
- Mon Aug 05, 2024 8:52 am
- Forum: Coding Questions
- Topic: SHGetPathFromIDList_ not working
- Replies: 10
- Views: 1554
Re: SHGetPathFromIDList_ not working
...
Can you try this code (by normeus)? Works fine for me:
Define Folder_ID, SFolderLoc.s
If SHGetSpecialFolderLocation_(0, #CSIDL_PROFILE, @Folder_ID) = 0
SFolderLoc.s = Space(#MAX_PATH*2)
SHGetPathFromIDList_(Folder_ID, @SFolderLoc)
CoTaskMemFree_(Folder_ID)
EndIf
Debug sFolderLoc ...
- Tue Jun 18, 2024 7:59 pm
- Forum: Coding Questions
- Topic: How to save SQLite Database in memory to file?
- Replies: 5
- Views: 1469
Re: How to save SQLite Database in memory to file?
Anything wrong with simply using :
DatabaseUpdate( #DB_YTCS, "Vacuum DB_MEM into '.\gaga.s3db' " )
??
DatabaseUpdate( #DB_YTCS, "Vacuum DB_MEM into '.\gaga.s3db' " )
??
- Fri Apr 08, 2022 6:08 pm
- Forum: General Discussion
- Topic: Double-defining a variable
- Replies: 5
- Views: 1268
Re: Double-defining a variable
With globals,there is some use for this behaviour, in order to remind you inside a procedure that a variable has global scope.
But in long procedures, even the Global definition (usually at the procedure's start ) is a daunting "solution".
(Personally, I prefer a "g_"... prefix for my global ...
But in long procedures, even the Global definition (usually at the procedure's start ) is a daunting "solution".
(Personally, I prefer a "g_"... prefix for my global ...
- Thu Sep 30, 2021 6:49 pm
- Forum: Coding Questions
- Topic: Check if a file exists somewhere in the path
- Replies: 6
- Views: 1945
Re: Check if a file exists somewhere in the path
@ Marc56us
He just might also be looking for .ddl-, .lib- and other files not executable on their own .
He just might also be looking for .ddl-, .lib- and other files not executable on their own .

- Thu Sep 30, 2021 5:42 pm
- Forum: Coding Questions
- Topic: Check if a file exists somewhere in the path
- Replies: 6
- Views: 1945
Re: Check if a file exists somewhere in the path
Not too demanding, since the filename is already known. No need for the "ExamineDirectory" chore ;)
EnableExplicit
Define SoughtAfterFile$ = "Notepad.exe"
Define EPath$ = GetEnvironmentVariable("PATH")
Define Flag = 0
Define i = 1
Define SPath$ = StringField( EPath$, i, ";" )
Repeat
; Debug ...
EnableExplicit
Define SoughtAfterFile$ = "Notepad.exe"
Define EPath$ = GetEnvironmentVariable("PATH")
Define Flag = 0
Define i = 1
Define SPath$ = StringField( EPath$, i, ";" )
Repeat
; Debug ...
- Mon Sep 20, 2021 7:47 pm
- Forum: Feature Requests and Wishlists
- Topic: Debug [DebugLevel, ] <expression>
- Replies: 7
- Views: 3002
Re: Debug [DebugLevel, ] <expression>
It wouldn't , but if you cannot or are unwilling or unable to read and understand more than a single line of text at a time, that's not my problem.
- Mon Sep 20, 2021 6:49 pm
- Forum: Feature Requests and Wishlists
- Topic: Debug [DebugLevel, ] <expression>
- Replies: 7
- Views: 3002
Re: Debug [DebugLevel, ] <expression>
Yes, Axolotl, I do know, but thanks anyway.
I think the usefulness of debuglevel is dependant of what you do.
It may well be that many fellow programmers never use it, but keep to simple "debug <expression>" lines.
They wouldn't have to change a thing if my proposal really got implemented.
But ...
I think the usefulness of debuglevel is dependant of what you do.
It may well be that many fellow programmers never use it, but keep to simple "debug <expression>" lines.
They wouldn't have to change a thing if my proposal really got implemented.
But ...
- Mon Sep 20, 2021 3:40 pm
- Forum: Feature Requests and Wishlists
- Topic: Debug [DebugLevel, ] <expression>
- Replies: 7
- Views: 3002
Re: Debug [DebugLevel, ] <expression>
I know that ^^
But the debug lines clutter tbe view, unnecessarily.
But the debug lines clutter tbe view, unnecessarily.
- Mon Sep 20, 2021 11:10 am
- Forum: Feature Requests and Wishlists
- Topic: Debug [DebugLevel, ] <expression>
- Replies: 7
- Views: 3002
Debug [DebugLevel, ] <expression>
Could we have the debug statement like this:
Debug [DebugLevel, ] <expression>
instead of our traditional
Debug <expression> [, DebugLevel]
, please?
That way, (especially when debug statements have long, complicated expressions to contend with )
* it would look more tidy
* the debuglevel ...
Debug [DebugLevel, ] <expression>
instead of our traditional
Debug <expression> [, DebugLevel]
, please?
That way, (especially when debug statements have long, complicated expressions to contend with )
* it would look more tidy
* the debuglevel ...
- Sat Jun 19, 2021 8:49 am
- Forum: Feature Requests and Wishlists
- Topic: Enhanced Debug Window
- Replies: 2
- Views: 2417
Re: Enhanced Debug Window
Yes, yes and yes!...and a search functionality.
... and, if it isn't too much trouble, with RegExp-Functionality.
Or else: optionally have debug output piped to notepad++ . That way, multiple debug output "windows" could be simulated.
- Sat Jun 27, 2020 2:23 pm
- Forum: Coding Questions
- Topic: REGEXP for sqlite?
- Replies: 4
- Views: 1934
Re: REGEXP for sqlite?
Thanks a lot, infratec,
saved me quite some time not having to work this out myself.
saved me quite some time not having to work this out myself.
- Mon Jun 08, 2020 6:37 pm
- Forum: Bugs - IDE
- Topic: No autocomplete for macros in residents
- Replies: 3
- Views: 2955
Re: No autocomplete for macros in residents
Uhmmm..... it's there. I seemed to have the same problem.
I have PB5.72 and PB5.71 installed in adjacent paths of the same directory tree - AND I am creating the .res file through a custom entry in my tools menu in both installations.
On closer examination, I found that much to my surprise, lf I ...
I have PB5.72 and PB5.71 installed in adjacent paths of the same directory tree - AND I am creating the .res file through a custom entry in my tools menu in both installations.
On closer examination, I found that much to my surprise, lf I ...
- Mon Aug 12, 2019 11:07 am
- Forum: Applications - Feedback and Discussion
- Topic: [Module] PackEx - Module (all OS)
- Replies: 5
- Views: 3804
Re: [Module] PackEx - Module (all OS)
Well, thank you Thorsten.
The missing prefix was surely rather a "glitch" than a "bug".
I obviously somehow misunderstood this part.
"Add encrypted files to the archive or or decrypt files during unpacking"
Never mind, good work though.
Thanks for the quick reply
CJ
The missing prefix was surely rather a "glitch" than a "bug".
I obviously somehow misunderstood this part.
"Add encrypted files to the archive or or decrypt files during unpacking"
Never mind, good work though.
Thanks for the quick reply
CJ
- Mon Aug 12, 2019 9:44 am
- Forum: Applications - Feedback and Discussion
- Topic: [Module] PackEx - Module (all OS)
- Replies: 5
- Views: 3804
Re: [Module] PackEx - Module (all OS)
Hi, Thorsten.
First of all:Thanks for your effort, basically it's what many need and have written about it many times
Minor problem: Seems like the module prefix is missing in line 1673.
Bigger problem:
* Even with that prefix added, the ZIP file is being created with the two jpgs in unreadable ...
First of all:Thanks for your effort, basically it's what many need and have written about it many times
Minor problem: Seems like the module prefix is missing in line 1673.
Bigger problem:
* Even with that prefix added, the ZIP file is being created with the two jpgs in unreadable ...
- Fri Sep 21, 2018 6:32 pm
- Forum: Feature Requests and Wishlists
- Topic: enable_Debug_GetLastError
- Replies: 3
- Views: 1962
Re: enable_Debug_GetLastError
Oh, incidentally , we had a current case in the german forum where a file wouldn't open in some cases: it had to be win7 with a service pack installed while win7 without svc pack or win 10 worked as expected; also, the error did not occur with win7.SP1 when the accesses were more than 60 seconds ...