Search found 9 matches

by cleber
Thu Jun 04, 2015 8:10 pm
Forum: Coding Questions
Topic: Translate a C program for PB
Replies: 2
Views: 1525

Re: Translate a C program for PB

Thanks!
by cleber
Thu Jun 04, 2015 5:30 pm
Forum: Coding Questions
Topic: Translate a C program for PB
Replies: 2
Views: 1525

Translate a C program for PB

Hello People,

I understand very little of PB and nothing of C, someone would know "translate" this C program to PB?


//There are advanced third party web based packages available for QM but for many applications a simple CGI program gives an easy way to achieve web connectivity with no additional ...
by cleber
Fri May 29, 2015 5:01 pm
Forum: Coding Questions
Topic: My first window is not closing
Replies: 2
Views: 1192

My first window is not closing

Hello everyone,

I made my first window is not closing properly. The rest think it's ok.

Any suggestion?

att.,
Cleber

IncludeFile "\qmsys\syscom\qmclient.unicode.pb"

wFlags = #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget |
#PB_Window_SizeGadget | #PB_Window_ScreenCentered

OpenWindow(1 ...
by cleber
Thu May 28, 2015 3:37 pm
Forum: The PureBasic Form Designer
Topic: All I include in something done by the form designer
Replies: 7
Views: 6082

Re: All I include in something done by the form designer

thank you guys,

So, does it work?

Code: Select all

XIncludeFile "yourFormFileName.pbf"   
IncludeFile "qmclient.unicode.pb"
 
  OpenWindow_1()
 
  Repeat
    event = WaitWindowEvent()
  Until Window_1_Events(event) = #False

by cleber
Thu May 28, 2015 12:55 am
Forum: The PureBasic Form Designer
Topic: All I include in something done by the form designer
Replies: 7
Views: 6082

Re: All I include in something done by the form designer

Declare QMCall0(Subrname.s)
Declare QMCall1(Subrname.s, Arg1.s)
Declare QMCall2(Subrname.s, Arg1.s, Arg2.s)
Declare QMCall3(Subrname.s, Arg1.s, Arg2.s, Arg3.s)
Declare QMCall4(Subrname.s, Arg1.s, Arg2.s, Arg3.s, Arg4.s)
Declare QMCall5(Subrname.s, Arg1.s, Arg2.s, Arg3.s, Arg4.s, Arg5.s)
Declare ...
by cleber
Thu May 28, 2015 12:39 am
Forum: The PureBasic Form Designer
Topic: All I include in something done by the form designer
Replies: 7
Views: 6082

Re: All I include in something done by the form designer

;
; This code is automatically generated by the FormDesigner.
; Manual modification is possible to adjust existing commands, but anything else will be dropped when the code is compiled.
; Event procedures needs to be put in another source file.
; Teste de comentário

IncludeFile "\qmsys\syscom ...
by cleber
Wed May 27, 2015 10:51 pm
Forum: The PureBasic Form Designer
Topic: All I include in something done by the form designer
Replies: 7
Views: 6082

All I include in something done by the form designer

Hi,

All I include in something done by the form designer, disappears when compiled, including comments.

What should I do?

att.,
Cleber
by cleber
Wed May 27, 2015 7:41 pm
Forum: Coding Questions
Topic: DBMS MultiValue OpenQM
Replies: 1
Views: 1203

Re: DBMS MultiValue OpenQM

Hi,

I managed to connect the QM with PB, very simple.

I managed to open a QM file and show on the screen a record.

att.,
Cleber

//////////////////////////////////
IncludeFile "\qmsys\syscom\qmclient.unicode.pb"
OpenConsole()
If Not QMConnect("localhost", -1, "cleber", "psw", "teste")
PrintN ...
by cleber
Tue May 26, 2015 4:29 pm
Forum: Coding Questions
Topic: DBMS MultiValue OpenQM
Replies: 1
Views: 1203

DBMS MultiValue OpenQM

Hi people,

I want to use PureBasic with DBMS OpenQM (http://openqm.com/index.htm) is a MultiValue database, I used a similar (Pick / D3) to several years.

For over 15 years I do not do computer programs and I'm a little rusty.

I used a PureBasic, I'm starting to read the documentation.

They ...