Search found 8 matches

by kimio
Wed Oct 29, 2003 1:00 pm
Forum: Coding Questions
Topic: urgent! how to give back values from a pb.dll
Replies: 3
Views: 1537

yes.....i just found it here in the forum

thanks for the quick reply! for my program its ok that i can give back only one value.

i just was not able to find this ProcedureReturn in the pb-help.

kimio
by kimio
Wed Oct 29, 2003 12:28 pm
Forum: Coding Questions
Topic: urgent! how to give back values from a pb.dll
Replies: 3
Views: 1537

urgent! how to give back values from a pb.dll

hello!

is there anyone who can tell me how to give back values from an pb.dll?

no problem to send values to my pb.dll - but how can i send parameters back? (like: return_values(1,2,"hallo",etc.)

ProcedureDLL MyFunction(in_value.l)
MessageRequester("Hello", Str(in_value), 0)
...
operations ...
by kimio
Sun Sep 21, 2003 11:20 am
Forum: Coding Questions
Topic: Read MS-Excel from PB - my mySql-queries dont work
Replies: 8
Views: 2858

How to read Excel....

ok....
my ODBC looks like:

DSN (data source name): kv (excel-table='kv.xls'; sheet='Tabelle1', i use excel 2000)

version: excel 97-2000

path to excel-folder: ok

write protected

look at my example on top: the database-connection is opened correctly (sub open_db:), i get no error-message.

can ...
by kimio
Fri Sep 19, 2003 11:59 am
Forum: Coding Questions
Topic: Read MS-Excel from PB - my mySql-queries dont work
Replies: 8
Views: 2858

ODBC: do i use normal SQL-syntax to communicate excelsheet?

thanks a lot!

ok, the SELECT statement has to be written in upper cases....

and the statement doesnt need a $ behind 'tabelle1'. this is because the whole query is a string, so you dont have to use a '$' behind the table-name (i have also tried it with $ behind tabelle1).

my query still does not ...
by kimio
Fri Sep 19, 2003 10:40 am
Forum: Coding Questions
Topic: Read MS-Excel from PB - my mySql-queries dont work
Replies: 8
Views: 2858

Read MS-Excel from PB - my mySql-queries dont work

hello!

i am just trying to read an excel-sheet (name: "kv.xls", first table = "Tabelle1" ) (MS office 2000), but it does not work.

i can open the 'database', but my select-query is not accepted.

is there anyone who has an idea?

thanks a lot!

kimio ...
by kimio
Sat Jul 19, 2003 1:50 pm
Forum: Windows
Topic: how to connect PB to mysql with OpenDatabase?
Replies: 4
Views: 5098

it is working!

ok, it works!

here is the full code.

----------------------------------------

InitDatabase()
DriverODBC.s = "billing" ; change here !
If ExamineDatabaseDrivers()
While NextDatabaseDriver()
If DatabaseDriverName() = DriverODBC
Base_OK.b = 1
EndIf
Wend
EndIf
If Base_OK = 0 ...
by kimio
Sat Jul 19, 2003 1:27 pm
Forum: Windows
Topic: how to connect PB to mysql with OpenDatabase?
Replies: 4
Views: 5098

how to connect PB to mysql with OpenDatabase?

ok...i have tried everything, but it still does not work. the programm does not find the ODBC-driver.

->@gnozal: DriverODBC.s = "MySQL" ; change here !

in my ODBC-DSN-Information the description is "MySQL ODBC 3.51 Driver DSN". the change to this description does also not work. ( i am working ...
by kimio
Sat Jul 19, 2003 10:49 am
Forum: Windows
Topic: how to connect PB to mysql with OpenDatabase?
Replies: 4
Views: 5098

how to connect PB to mysql with OpenDatabase?

i have a slight problem:

i just want to set up a connection from my PB-programm to a local mysql-database (mysql vers. 4.0; myODBC aktual version).

i dont want to use the OpenDatabaseRequester, because i want to open only one specific database.

my database connection parameters are:

ODBC ...