Search found 47 matches

by Lewis
Tue Jul 08, 2014 3:53 pm
Forum: General Discussion
Topic: Code examples
Replies: 6
Views: 2911

Code examples

Hi all, long time no see! :shock:

I'm wondering when was the last time anyone, ie a PB developer, went through the coding examples and brought them up-to-date with the latest release and/or the 64-bit version. It's very frustrating when an example fails because of 'old' code. :(

Lewis
by Lewis
Mon Aug 01, 2011 2:18 pm
Forum: Coding Questions
Topic: Listing files in a directory
Replies: 18
Views: 8079

Re: Listing files in a directory

Hmmm... I use the shell and DOS commands to change directory and list to a textfile, namely

1. Open up your command prompt by typing cmd in the run dialog box and hitting Enter.
2. Navigate to the directory which has the files and type the following command -- DIR /B /O:N > filename.txt
This will ...
by Lewis
Sat Nov 13, 2010 12:53 pm
Forum: Tricks 'n' Tips
Topic: Add Buttons to Windows Title Bar(Windows)
Replies: 20
Views: 11602

Re: Add Buttons to Windows Title Bar(Windows)

Hi folks!

This is an interesting thread! 8) However, it occurred to me that code to remove system icons in the titlebar would be of interest to many a programmer. For example, it's not unusual to see games with just the close icon visible/available.

Anyone care to propose a solution? ...

Cheers ...
by Lewis
Sat Oct 30, 2010 4:01 pm
Forum: Off Topic
Topic: PB programming book needed in WikiBooks
Replies: 5
Views: 1159

Re: PB programming book needed in WikiBooks

LuCiFeR[SD] wrote:If YOU want a book on there, then YOU write one...Is the simple answer :)
Nah, there's already a free PB book that fits the bill...

@LuCiFeR[SD]: Don't get hissy, I'm merely making the community aware of missed marketing opportunities. :wink:

Cheers,
Lewis
by Lewis
Sat Oct 30, 2010 3:46 pm
Forum: Coding Questions
Topic: Whats the PB equivalent for boolean
Replies: 20
Views: 6343

Re: Whats the PB equivalent for boolean

@LuCiFeR[SD]: Nice contribution, however, work-arounds are just that -- work-arounds. :)

Cheers,
Lewis
by Lewis
Sat Oct 30, 2010 3:32 pm
Forum: Coding Questions
Topic: Whats the PB equivalent for boolean
Replies: 20
Views: 6343

Re: Whats the PB equivalent for boolean

@Demivec: You seem to be missing the point! Choosing the TRUE value of 1 (or any value other than 0) and using it in calculations requires that you make this known for later reading of the code (by yourself or others). Using the true TRUE value of -1 would not require further documentation ...
by Lewis
Sat Oct 30, 2010 3:04 pm
Forum: Off Topic
Topic: PB programming book needed in WikiBooks
Replies: 5
Views: 1159

PB programming book needed in WikiBooks

I'll keep it simple since both the subject and the WikiBooks site speak for themselves.

On http://en.wikibooks.org/wiki/Subject:BASIC_programming_language there are already entries for several PB competitors. :shock: In this respect, " Wake up! " is the obvious call to action. Need I say more ...
by Lewis
Sat Oct 30, 2010 12:19 pm
Forum: Coding Questions
Topic: Whats the PB equivalent for boolean
Replies: 20
Views: 6343

Re: Whats the PB equivalent for boolean

Well, PureBasic assumes 0 = false, and not-zero is true... as far as I know -1 is not zero, so... :-)

:roll: Very observant of you, blueznl! :) However, the value not-zero is impossible to use directly in calculations, unlike a TRUE value of -1, which in certain circumstances can also improve ...
by Lewis
Sun Oct 24, 2010 11:52 am
Forum: Coding Questions
Topic: Whats the PB equivalent for boolean
Replies: 20
Views: 6343

Re: Whats the PB equivalent for boolean

Well, PureBasic assumes 0 = false, and not-zero is true... as far as I know -1 is not zero, so... :-)

:roll: Very observant of you, blueznl! :) However, the value not-zero is impossible to use directly in calculations, unlike a TRUE value of -1, which in certain circumstances can also improve ...
by Lewis
Thu Oct 14, 2010 12:33 pm
Forum: Coding Questions
Topic: Whats the PB equivalent for boolean
Replies: 20
Views: 6343

Re: Whats the PB equivalent for boolean

I believe the preferred way to implement boolean is that
0 = FALSE
and NOT FALSE = -1

Since NOT FALSE = TRUE then TRUE = -1.
It follows that NOT TRUE = 0.

Unfortunately there are not many languages that implement boolean that way. :(

Food for thought ...? :wink:

Cheers,
Lewis
by Lewis
Fri Sep 10, 2010 12:49 pm
Forum: Feature Requests and Wishlists
Topic: Data-aware gadgets
Replies: 2
Views: 1011

Re: Data-aware gadgets

Doesn't make much sense to me.
What should this be? a ListViewGadget() with a database as a parameter that automatically looks for updates of that database? With an optional time-out, update-speed etc. parameter? :lol:

C'mon we are programmers and we know how to manage this by ourselves.

Yeah ...
by Lewis
Fri Sep 10, 2010 12:45 pm
Forum: Feature Requests and Wishlists
Topic: Big number library
Replies: 14
Views: 2925

Re: Big number library

PS I would like to see a math lib (and others) within the Purebasic package – if not done by the PB team then something like a " certified by fred " lib, this would help sharing code using standardized keywords

And what happens if such a "certified" lib becomes incompatible to a new PB version ...
by Lewis
Sat Sep 04, 2010 2:37 pm
Forum: Feature Requests and Wishlists
Topic: Big number library
Replies: 14
Views: 2925

Big number library

Since this is most likely of interest only to mathematical researchers only, it is unlikely to be a priority task. Nevertheless, it is now requested -- and hopefully not to be forgotten. :wink:

Cheers,
Lewis
by Lewis
Sat Sep 04, 2010 2:32 pm
Forum: Feature Requests and Wishlists
Topic: Data-aware gadgets
Replies: 2
Views: 1011

Data-aware gadgets

Are we likely to get data-aware gadgets in the near future? (Data-aware gadgets are capable of watching database connections, such that the gadget data is automatically updated when changed by another database user.)

IMHO this is a natural consequence of having a Database library. :wink:

Cheers ...
by Lewis
Thu Sep 02, 2010 3:18 pm
Forum: Coding Questions
Topic: PostgreSQL -- bug connecting or virus generator?
Replies: 18
Views: 3433

Re: PostgreSQL -- bug connecting or virus generator?

You're welcome, Lewis.
...or wanting to keep two customers :mrgreen:

Jepp, maybe two. :)

Ok, I went into the Norton support chat room, got a free 2010-version update (from my 2009-version purchase), and more or less solved the db-connection problem. It's now much easier to switch off the Sonar ...