Search found 115 matches
- Dec 10, 2015 11:51
- Forum: General
- Topic: Help with MySQL and FreeBASIC
- Replies: 18
- Views: 3096
Re: Help with MySQL and FreeBASIC
Maybe you did not close the DB-Connection and want to open it again? Public Sub CheckCashierPassword(ByVal CashierNumber As String, CashierPassword As String) Print "Conneting to Database" 'ConnectToSQLDatabase SQLCommand = "" You could test it without closing DB.... Just connect...
- Dec 09, 2015 21:31
- Forum: General
- Topic: Help with MySQL and FreeBASIC
- Replies: 18
- Views: 3096
Re: Help with MySQL and FreeBASIC
result = mysql_store_result(DatabaseConnection) Select Case result Result will be a Pointer to a mySQL_RES Structure or NULL if fail. Return Values A MYSQL_RES result structure with the results. NULL (0) if an error occurred. to get the number of rows return by mysql_store_result you have to call m...
- Dec 08, 2015 15:10
- Forum: Community Discussion
- Topic: Version 1.04.0
- Replies: 89
- Views: 16050
Re: Version 1.04.0
fb_gfx_drawline is awaiting *int style
but revers_mask handels only 32-bit
so the easiest way is: style to be ulong... but I don't know if it will produce other hickups
same for color, but on that one revers_mask isn't used as far as I see
but revers_mask handels only 32-bit
so the easiest way is: style to be ulong... but I don't know if it will produce other hickups
same for color, but on that one revers_mask isn't used as far as I see
- Dec 04, 2015 16:04
- Forum: Community Discussion
- Topic: Select case VALUE within array, and sets in general
- Replies: 10
- Views: 1748
Re: Select case VALUE within array, and sets in general
And at last, I still love the set brackets { ... }. But this is affair of taste. Uhhh.... and that is why I use Freebasic. All the way it shruggs me if y see the nasty " ; " and " { } " within the code In times I did some UI stuff in dbox and other following DVB-Recievers all th...
- Dec 03, 2015 14:27
- Forum: Linux
- Topic: FreeBasic 0.90.1 for ARM 6 / 7 devices.
- Replies: 42
- Views: 46992
Re: FreeBasic 0.90.1 for ARM 6 / 7 devices.
The Stw Builds are running fine:
http://users.freebasic-portal.de/stw/bu ... hf-debian/
Here is a 1.02 Test Picture:
Greetings
Drago
http://users.freebasic-portal.de/stw/bu ... hf-debian/
Here is a 1.02 Test Picture:
Greetings
Drago
- Dec 01, 2015 12:37
- Forum: General
- Topic: Help with MySQL and FreeBASIC
- Replies: 18
- Views: 3096
Re: Help with MySQL and FreeBASIC
Here is my TestCode to connect to MySQL Database. I think I had used the MySQL Example in FreeBasic directory. Actual Test on my computer with 1.05.00 (32Bit): running. #Include Once "mysql\mysql.bi" #define NULL 0 Dim conn As MYSQL Ptr Dim res As MYSQL_RES Ptr Dim row As MYSQL_ROW Dim ser...
- Nov 29, 2015 22:28
- Forum: Community Discussion
- Topic: [offtopic]Some cheap and tiny ARM devices.
- Replies: 69
- Views: 25536
Re: 5$ Raspberry PI Zero
Dear Joshy, yes this Pi could be really great. I orderd 3 pi zero at reichelt. Looking forward to get them in December. As I am always looking to extend my TimeTracking program for out RunningEvent I thought this little Pi with some Transceiver (maybe the one you mentioned) would fine to track some ...
Re: UDT Help
and to be extended for the NPC: enum PTyp Player = 1 Computer = 2 end enum Type Entity Stre as Integer Inte as Integer Char as Integer Rela as Integer Name as String isWhat as PTyp declare constructor () declare constructor (What as PTyp) declare sub entityStats () End Type constructor entity (What ...
- Aug 06, 2015 13:19
- Forum: Sources, Examples, Tips and Tricks
- Topic: demo retro expenses record keeper
- Replies: 3
- Views: 948
Re: demo retro expenses record keeper
sub loadExpenses() if dir("expenses.txt") <> "expenses.txt" then for j as integer = 0 to ROWTOTAL-1 for i as integer = 0 to COLTOTAL-1 item(i,j) = "" next i next j exit sub end if OPEN "expenses.txt" FOR INPUT AS #1 for j as integer = 0 to ROWTOTAL-1 for i as...
- Jun 19, 2015 7:42
- Forum: General
- Topic: Conflict between local/private String-name and TYPE def
- Replies: 19
- Views: 3233
Re: Conflict between local/private String-name and TYPE def
if the local code is embedded into namespace there is no interaction between local vars and included types. #include once "crt\win32\time.bi" 'Only to get at the "TM" structure (9 * LONGs, 36 bytes) namespace Showtime Sub Show_String() Dim as string tm Dim as integer i tm = "...
- Jun 19, 2015 7:04
- Forum: Beginners
- Topic: dimensioning arrays
- Replies: 12
- Views: 3320
Re: dimensioning arrays
There are two ways to code: use dim shared: Dim shared as integer place( 1 to 4 ) Declare Sub O_Token( box As UInteger, use As UInteger ) Declare Sub Get_Location( box As UInteger ) Sub Get_Token( box As UInteger, use As UInteger ) ' calling routine '............... if use = 1 then 'nothing to do he...
- Jun 09, 2015 15:00
- Forum: Community Discussion
- Topic: Dim/Data block syntax
- Replies: 4
- Views: 1191
Re: Dim block syntax
Code: Select all
Long nextPtrOccurenceCountTABLE(1 To nextPtrTableUpperBound)
Long totalOccurenceCountFromTABLE = 0
- Apr 03, 2015 16:18
- Forum: Libraries & Headers
- Topic: FreeGLUT 3.0.0
- Replies: 3
- Views: 2195
Re: freeglut 3.0.0
I had to add the 'inc':Geany wrote:c:\FreeBasic64\fbc -s gui "test.bas" (im Verzeichnis: C:\FreeBasic64\Tests)
Kompilierung erfolgreich beendet.
Code: Select all
#include once "inc/GL/freeglut.bi"
Grüße
Rainer
- Apr 03, 2015 15:55
- Forum: Projects
- Topic: FireFly Visual Designer for FreeBASIC (Updated March 8, 2016)
- Replies: 371
- Views: 150160
Re: FireFly Visual Designer for FreeBASIC (Updated Mar 29, 2
Dear Paul, i got some errors on compiling old Projects: FreeBASIC Compiler - Version 1.02.0 (03-28-2015), built for win32 (32bit) Copyright (C) 2004-2015 The FreeBASIC development team. standalone target: win32, 486, 32bit compiling: CODEGEN_CW_EBIL_MAIN.bas -o CODEGEN_CW_EBIL_MAIN.asm (main module)...
- Mar 03, 2015 12:28
- Forum: Beginners
- Topic: how use windows truetype fonts in freebasic
- Replies: 26
- Views: 7389
Re: how use windows truetype fonts in freebasic
Here is also ok. C:\FreeBasic>fbc --version FreeBASIC Compiler - Version 1.02.0 (02-12-2015), built for win32 (32bit) Copyright (C) 2004-2015 The FreeBASIC development team. standalone Geany: c:\FreeBasic\fbc -exx -w all "DrawFont.bas" (im Verzeichnis: C:\FreeBasic\Test) Kompilierung erfol...