Search found 91 matches

by ROBROS
Thu May 10, 2018 6:39 pm
Forum: General Discussions
Topic: Program writing
Replies: 17
Views: 681

Re: Program writing

I'm using notepad++ but I would like to have an editor (artificial intelligence) who knows what I expect from my source code and tells me: "if your settings (date and so on) are typed in outside (ahead) of the main function they will have no effect to the result. example: my post of today concerning...
by ROBROS
Thu May 10, 2018 4:21 pm
Forum: HMG Tutorials and Tips
Topic: Date-Type textbox problem
Replies: 7
Views: 260

Re: Date-Type textbox problem

One of my replies got lost on the way to the board,

I always looked for the error inside the main function.

@ edk: Thank you.

@ Mustafa: edk's reply showed me the difference.

Thx again.

Robert
by ROBROS
Thu May 10, 2018 2:16 pm
Forum: HMG Tutorials and Tips
Topic: Date-Type textbox problem
Replies: 7
Views: 260

Re: Date-Type textbox problem

Hi friend Mustafa,

I compiled and of course it works, thank you, but I have not yet found the difference to my code.;)

Anyway: Thank you
Robert
by ROBROS
Thu May 10, 2018 1:41 pm
Forum: HMG Tutorials and Tips
Topic: Date-Type textbox problem
Replies: 7
Views: 260

Re: Date-Type textbox problem

As you can see from the attached screen shot, the typed in date is not validated, but the MsgInfo shows nothing (blank).

The sequence of the attached files is wrong. Sorry for that.
by ROBROS
Thu May 10, 2018 11:57 am
Forum: HMG Tutorials and Tips
Topic: Date-Type textbox problem
Replies: 7
Views: 260

Date-Type textbox problem

Hi friends, I played around with a date-type textbox and need help. See the code: #include "hmg.ch" set century on set date to german set date format to "DD.MM.YYYY" FUNCTION Main() local cDat, cDatum DEFINE WINDOW Date_1 ; AT 120,120 ; WIDTH 400 ; HEIGHT 150 ; TITLE "Textbox Date" ; MAIN END WINDOW...
by ROBROS
Fri Apr 13, 2018 6:31 pm
Forum: General
Topic: SAY AND GET
Replies: 13
Views: 1025

Re: SAY AND GET

What is the difference between REQUEST & #Include? a 'REQUEST' is a statement directed to the linker that demands to link the requested modules while an '#include' is a directive to the compiler (in fact to the pre-processor ) that instructs him to incorporate a source file exactly in place where t...
by ROBROS
Mon Apr 02, 2018 5:09 pm
Forum: GUI Basics
Topic: Variables and Definition Errors
Replies: 24
Views: 926

Re: Variables and Definition Errors

Hi,

the type of value in a label must be character, maybe this causes the error.
I assume the value of record number is numeric.

The runtime errors of hmg are sometimes very puzzling :roll:

But, I am quite a newbie too.

Robert
by ROBROS
Mon Apr 02, 2018 10:49 am
Forum: GUI Basics
Topic: Variables and Definition Errors
Replies: 24
Views: 926

Re: Variables and Definition Errors

Going back to the DATA_BOUND example, the line "Win_1.Add1.Refresh" where Win_1 is the Window name and "Add1" is the Textbox name (I've changed them for my purposes), am I correct in saying that "refresh" refreshes the value of the textbox? In each case the textbox refers to a database FIELD but I ...
by ROBROS
Mon Apr 02, 2018 7:30 am
Forum: GUI Basics
Topic: Variables and Definition Errors
Replies: 24
Views: 926

Re: Variables and Definition Errors

Hi Alan, see the following sample from Data_Bound, I have changed it to match my needs (change an existing record and write the changes to dbf): #include "hmg.ch" local cPersnr set navigation extended use DEFINE WINDOW form_chg ; AT 0,0 ; WIDTH 600 ; HEIGHT 480 ; TITLE 'Stammdaten Fahrer bearbeiten'...
by ROBROS
Sat Mar 31, 2018 2:37 pm
Forum: GUI Basics
Topic: Variables and Definition Errors
Replies: 24
Views: 926

Re: Variables and Definition Errors

Hi Alan, take a look at DATA_BOUND in the samples, the screenshot shows the path in your installation-folder. I fancy you could use it for your app.