Search found 17 matches

by EfDschoma
Sat Mar 01, 2014 8:27 pm
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

Re: PB CodeLine - Evaluate expression of Constant + "xyz"

Thank you, for the hint about no influence during runtime und your sample code.
Its a great help and I think my solution will be to evaluate onle the #PB_Compiler_Home.

With your help I am learning quickly the use of the possibilities of purepasic. :D
by EfDschoma
Sat Mar 01, 2014 3:30 pm
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

Re: PB CodeLine - Evaluate expression of Constant + "xyz"

Yes, that is exactly what i want!
by EfDschoma
Sat Mar 01, 2014 1:58 pm
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

Re: PB CodeLine - Evaluate expression of Constant + "xyz"

thank you Little John, that you are dealing with my problem.

In short: I am analyzing source code files, and this is my desire:
; Installpath is e.g. D:\ProgramFiles(x86)\PureBasic and vor XIncludeFile i used:
;---
MySubFolder.s = "Includes\" : XIncludeFile #PB_Compiler_Home + MySubFfolder ...
by EfDschoma
Sat Mar 01, 2014 1:35 pm
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

Re: PB CodeLine - Evaluate expression of Constant + "xyz"

Noooooooooo, maybe I can't see it . But MessageRequester("", #PB_Compiler_Home ) give me that path already.

My point is to translate the piece of Code in a string "#PB_Compiler_Home + "projects\test.pb" to D:\ProgramFiles(x86)\PureBasic\projects\test.pb
Yes I know I can do it that long laborious ...
by EfDschoma
Sat Mar 01, 2014 11:40 am
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

Re: PB CodeLine - Evaluate expression of Constant + "xyz"

I got lost in my Include-usage, i dont know where ond how often my 'xyz.pbi' is used. So my goal is to get a cross reference list of oll my code files and usage of includes.

So I loop through ... and i do not want to output
Found include: #PB_Compiler_Home + "projects\test.pbi" in file: xxxx into ...
by EfDschoma
Sat Mar 01, 2014 10:54 am
Forum: Coding Questions
Topic: PB CodeLine - Evaluate expression of Constant + "xyz"
Replies: 14
Views: 3435

PB CodeLine - Evaluate expression of Constant + "xyz"

I am analyzing a PureBasic Programm code.
When I am looping throught my code I extract my XInclude strings and get: "#PB_Compiler_Home + "projects\test.pb"
where #PB_Compiler_Home = 'D:\ProgramFiles(x86)\PureBasic\' in my constellation.

Now i will convert this "#PB_Compiler_Home + "projects\test.pb ...
by EfDschoma
Sat Mar 01, 2014 8:30 am
Forum: The PureBasic Editor
Topic: 5.20 Freeze when a project is opened/closed
Replies: 8
Views: 5398

Re: 5.20 Freeze when a project is opened/closed

I am using Windows 8.1 and PureBasic 5.21 LTS

For quite some time I install programs no longer into '' C:\Program Files ' or ' C:\Programme ' ) or ' C:\Program Files (x86) ' or ' C:\Programme (x86) '.

I always split my hard drive, and then I install programs, where I expect that they often access ...
by EfDschoma
Sat Mar 01, 2014 1:09 am
Forum: Coding Questions
Topic: minIntExceptZero(a,b) - a Min() procedure which ignores Zero
Replies: 3
Views: 767

minIntExceptZero(a,b) - a Min() procedure which ignores Zero

In a complex string manipulation, I try to cut off trailing code ( Comments ( ; xyz) and concatenated code lines ( a = 10 : b = 11 )
so i fetch the position of ; and of : an then I compute the min() value, but i have to ignore the zero values ( e.g. no semicolon found )

Therefore, I designed this ...
by EfDschoma
Wed Feb 26, 2014 1:18 pm
Forum: Tricks 'n' Tips
Topic: BackUp active SourceFile to ZIP with ShortCut (Windows)
Replies: 1
Views: 1346

Re: BackUp active SourceFile to ZIP with ShortCut (Windows)

Above mentioned: Save your source file before backup it.
Or after backup, because the comment is written to source file.
Yust integrate the following:
Procedure SendCmdKey( cmdKey, Key1 )
keybd_event_( cmdKey, 0, 0, 0 ) ; press cmdKey
keybd_event_( Key1, 0, 0, 0 ) ; press Key
keybd_event_( Key1 ...
by EfDschoma
Tue Feb 25, 2014 4:53 pm
Forum: Tricks 'n' Tips
Topic: BackUp active SourceFile to ZIP with ShortCut (Windows)
Replies: 1
Views: 1346

BackUp active SourceFile to ZIP with ShortCut (Windows)

Hi, I'm quite a beginner in PureBasic. This is my first attempt of a PB IDE tool to easily back up my source files. Works well for my purposes.
Give me feedback if you can make something easier or better. Maybe somebody find it useful.
Have a nice day.
;
; Last backup on 2014-02-25 at 14-15-14 into ...
by EfDschoma
Tue Feb 25, 2014 12:13 pm
Forum: The PureBasic Editor
Topic: [Solved] How to save ActiveIDEFile programmatically
Replies: 0
Views: 2100

[Solved] How to save ActiveIDEFile programmatically

I am writing a little IDE helper for my needs to integrate it in Tools. Works fine with "%File" param.
But I have to save the active IDE source file programmatically befor working on "%File"-file.
Is there an easy way ???

Yes and even simple:
Procedure SendCmdKey( cmdKey, Key1 )
keybd_event ...
by EfDschoma
Mon Feb 24, 2014 4:34 pm
Forum: General Discussion
Topic: PureZip 500 failure (pureBasic 5.21) Windows
Replies: 4
Views: 1937

Re: PureZip 500 failure (pureBasic 5.21) Windows

:D I just found that PureBasic version 5.21 has a built-in packer library. I have tried it and works great.
by EfDschoma
Mon Feb 24, 2014 12:44 am
Forum: General Discussion
Topic: PureZip 500 failure (pureBasic 5.21) Windows
Replies: 4
Views: 1937

PureZip 500 failure (pureBasic 5.21) Windows

Hi, i hope someon can help me.
My system is PureBasic 5.21, Windows and I installed PureZip 500 with the installer.exe.
If i try the following:
buZip.s = "c:\temp.zip"

If FileSize( buZip ) = -1 ; File doesnt exist, therefore create it
PureZIP_Archive_Create( buZip, #APPEND_STATUS_CREATE )
Else ...
by EfDschoma
Fri Feb 21, 2014 6:30 pm
Forum: Tricks 'n' Tips
Topic: #Gadget or GadgetID - convert automatically to GadgetID
Replies: 9
Views: 4852

Re: #Gadget or GadgetID - convert automatically to GadgetID

srod wrote::lol:
I found and bought purebasic a few days ago and I am very excited, although I have to rewrite many routines that I had in other programming languages ​​already. and I am even more excited by your feedback. Thank you for your help.
by EfDschoma
Fri Feb 21, 2014 4:35 pm
Forum: Tricks 'n' Tips
Topic: #Gadget or GadgetID - convert automatically to GadgetID
Replies: 9
Views: 4852

Re: #Gadget or GadgetID - convert automatically to GadgetID

[quote="srod"]I must be missing something here because it all works fine for me. Nothing is debugged with the following which is correct.
...
Thank you for your attention, here is my code. It seems that my other code uses by calling 'Show_StrGdgBalloon' GadgetNr or the GadgetID,
and i couldnt find ...