1) avoid global vars
2) use "Define" on global scope, and "shared" on local Scope, so you need global vars only in very special cases
Define gvarname
Procedure test()
Shared gvarname
ProcedureReturn gvarname
endprocedure
3A) use modules and use only "modulwide" Variables, so you protect ...
Search found 24 matches
- Wed Mar 19, 2014 9:25 am
- Forum: Feature Requests and Wishlists
- Topic: Compileroption: output of list of global variables
- Replies: 5
- Views: 2261
- Mon Nov 04, 2013 1:33 pm
- Forum: Announcement
- Topic: PurePDF Version 2.0
- Replies: 473
- Views: 278961
Re: PurePDF Version 2.0
Is it possible to merge two documents to one document?
Thank you for this great lib!!!
Thank you for this great lib!!!
- Mon Oct 28, 2013 12:16 pm
- Forum: Tricks 'n' Tips
- Topic: mysql.pbi [cross platfom]
- Replies: 29
- Views: 29256
Re: mysql.pbi [linux & win]
I have two changes for you:
1) Bugfix: MySQL_DatabaseUpdate should be give a #True as Result.
Procedure MySQL_DatabaseUpdate(DataBase, Query.s)
Protected Result
If MySQL_FindDataBase(DataBase) = 0
MySQL_LastErrorFlag = #False
ProcedureReturn DatabaseUpdate(DataBase, Query)
EndIf
MySQL ...
1) Bugfix: MySQL_DatabaseUpdate should be give a #True as Result.
Procedure MySQL_DatabaseUpdate(DataBase, Query.s)
Protected Result
If MySQL_FindDataBase(DataBase) = 0
MySQL_LastErrorFlag = #False
ProcedureReturn DatabaseUpdate(DataBase, Query)
EndIf
MySQL ...
- Tue Sep 17, 2013 11:50 pm
- Forum: PureFORM & JaPBe
- Topic: PurePOP3 library : POP3 functions
- Replies: 336
- Views: 226073
Re: PurePOP3 library : POP3 functions
Any chance to get an fresh version for PB5.20?
This lib don't work anymore, because the lack of the "misc" lib....

This lib don't work anymore, because the lack of the "misc" lib....

- Fri Sep 06, 2013 12:01 pm
- Forum: Feature Requests and Wishlists
- Topic: I want clickable here
- Replies: 7
- Views: 1593
- Wed Aug 28, 2013 1:36 pm
- Forum: Tricks 'n' Tips
- Topic: Registry Module (windows only)
- Replies: 97
- Views: 67382
Re: Registry Module (windows only)
Thank you!,
I have replaced the old Code with this module.
I have replaced the old Code with this module.

- Thu Mar 07, 2013 1:49 am
- Forum: Feature Requests and Wishlists
- Topic: Double-quotes in strings
- Replies: 48
- Views: 8981
Re: Double-quotes in strings
+1 for the ""-version
- Tue Feb 05, 2013 6:19 pm
- Forum: Windows
- Topic: LibMySQL Wrapper for MySQL Databases
- Replies: 17
- Views: 24950
Re: LibMySQL Wrapper for MySQL Databases
Lib updated....
- Tue Feb 05, 2013 6:15 pm
- Forum: Coding Questions
- Topic: mysql
- Replies: 16
- Views: 28974
Re: mysql
Have a look on my Wrapper with Purebasic - like MYSQL-Handling:
http://www.purebasic.fr/english/viewtop ... t=libmysql
http://www.purebasic.fr/english/viewtop ... t=libmysql
- Wed Sep 26, 2012 5:34 pm
- Forum: Feature Requests and Wishlists
- Topic: Modules
- Replies: 46
- Views: 25591
Re: Modules
+1 for the module concept, or another solution for
better Code-Seperation in bigger Projects.
better Code-Seperation in bigger Projects.
- Wed Sep 26, 2012 5:20 pm
- Forum: The PureBasic Form Designer
- Topic: Form Designer 5.10
- Replies: 665
- Views: 228945
Re: Form Designer 5.00 beta 3
One thing:
The "Caption is variable" Feature makes only sense to me, when i can have an
Procedure Parameter, or i have an "Shared xyz" in the Window procedure.
e.g.
Procedure InitWindow_0()
Shared test.s
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, test.s, #PB_Window_SystemMenu ...
The "Caption is variable" Feature makes only sense to me, when i can have an
Procedure Parameter, or i have an "Shared xyz" in the Window procedure.
e.g.
Procedure InitWindow_0()
Shared test.s
Window_0 = OpenWindow(#PB_Any, 0, 0, 600, 400, test.s, #PB_Window_SystemMenu ...
- Wed Sep 26, 2012 4:43 pm
- Forum: Coding Questions
- Topic: Howto print pdf document (PurePDF)
- Replies: 16
- Views: 4444
Re: Howto print pdf document (PurePDF)
Foxit Reader, its free and small
Code: Select all
/p
- Tue Aug 28, 2012 4:47 pm
- Forum: Tricks 'n' Tips
- Topic: Format string with some values like sprintf (C)
- Replies: 62
- Views: 39634
Re: Format string with some values like sprintf (C) - Update
I use your sprintf in a lot of codes.
For more flexibility please add
so we can mask the percent-char, e.g.
For more flexibility please add
Code: Select all
Case '%' : result + "%"
Code: Select all
this is a testcode works \%100\%
- Mon Aug 20, 2012 10:14 am
- Forum: Feature Requests and Wishlists
- Topic: Permanent include a source file with common functions etc.
- Replies: 12
- Views: 3523
Re: Permanent include a source file with common functions et
Here, a similar request with a workaround - at least for me.
http://www.purebasic.fr/english/viewtop ... =3&t=50824
http://www.purebasic.fr/english/viewtop ... =3&t=50824
- Fri Aug 10, 2012 7:26 pm
- Forum: Coding Questions
- Topic: How to create a new folder with a unique name
- Replies: 16
- Views: 4106
Re: How to create a new folder with a unique name
A Timestamp is enough....
Code: Select all
Dirname.s = Str(Date())