Search found 7 matches

by pwillard
Fri Mar 13, 2020 4:14 pm
Forum: Linux
Topic: Register extensions and make menu-entry for PB
Replies: 20
Views: 88452

Re: Register extensions and make menu-entry for PB

Actually, I went back to trying this same fix on default 5.62 and it complained.


This format below worked, Change line 36 to:

Code: Select all

if [ -z "$PUREBASIC_HOME" ] 
Which is a slightly better way to check to see if that variable is defined or if it is 'null' anyway.
by pwillard
Thu Mar 12, 2020 1:56 pm
Forum: Linux
Topic: Register extensions and make menu-entry for PB
Replies: 20
Views: 88452

Re: Register extensions and make menu-entry for PB

regarding: if [ "$PUREBASIC_HOME" == "" ]

remove the quotes

if [ $PUREBASIC_HOME == "" ]
by pwillard
Thu Mar 31, 2016 6:41 pm
Forum: Applications - Feedback and Discussion
Topic: PiccyDB, small picture database to carry around pictures
Replies: 15
Views: 9933

Re: PiccyDB, small picture database to carry around pictures

Sadly, the download link is now a error code 404
by pwillard
Sat Feb 09, 2013 4:53 am
Forum: Coding Questions
Topic: Confused about SQLITE Query
Replies: 6
Views: 1697

Re: Confused about SQLITE Query

Ugh. Still baffled. I thought I had it.

Same DB file, 2 locations.

If the DB file is : C:\Users\willard\Documents\PB\Database\parts.db it returns 0.

If the DB file is: C:\parts.db it returns 20 like its supposed to.

The only thing I'm changing is the path.
by pwillard
Fri Feb 08, 2013 10:45 pm
Forum: Coding Questions
Topic: Confused about SQLITE Query
Replies: 6
Views: 1697

Re: Confused about SQLITE Query

<facepalm>
Try making the Table different than the db Name?
works now.
by pwillard
Fri Feb 08, 2013 9:57 pm
Forum: Coding Questions
Topic: Confused about SQLITE Query
Replies: 6
Views: 1697

Re: Confused about SQLITE Query

Yes... just before that I say:

Code: Select all

If UseSQLiteDatabase() = 0
  MessageRequester("SQLite error", "Cannot access the SQLite database environment", #PB_MessageRequester_Ok)
  End
  
EndIf
by pwillard
Fri Feb 08, 2013 9:22 pm
Forum: Coding Questions
Topic: Confused about SQLITE Query
Replies: 6
Views: 1697

Confused about SQLITE Query

First off - Noob Status

I read this example: http://www.purebasic.fr/english/viewtopic.php?f=13&t=52896

I'm using 5.10-B4

Following that example, I have a database with 20 entries

My code:

DbHandle = OpenDatabase(#PB_Any, "C:\blahblah\PB\Database\MyParts.sqlite", "", "")

If DatabaseQuery ...