Another Grid Problem

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

franco
Posts: 821
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: Another Grid Problem

Post by franco »

Thanks again to all,
Serge,
I have got the problem solved.
I had to put in a grid_1 recall, and a grid_1 save, and a grid_1 refresh.
This put the information back into the grid.
This would only happen when I divided one field by another. It would not happen on an add or multiply.
It works good now. Very fast and I am working with fairly large tables, 100,000 records.
I took the code out of the forum because it was messy and hard to read. now that I got it working I want to clean
and straighten it up.
I down loaded 331 and when I compiled my complete program I had many errors.
Is there something I need to add to make it work. It says unicode at start.
It did not like my UNDO word in menus I needed to change to UNDO1.I am sure this is not necessary.
There were many more errors so I stopped using it for now.
Thanks again Franco
All The Best,
Franco
Canada
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Another Grid Problem

Post by Javier Tovar »

Que bueno que solucionaste tu problema!

Saludos
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Another Grid Problem

Post by serge_girard »

Great !

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Another Grid Problem

Post by mol »

My countryman is learning HMG and turned to me with problem with browse dbf file with gid.
Workarea is filtered.
When you want to go to last record with Ctrl-END grid stops somewhere in the middle of database:

Image


When you move to last record with Down Arrow or Page Down Key, you can reach last record:

Image

I'm attaching full sample for sb. who wants to test it, because I haven't any idea.
http://www.molsystemy.pl/hmg/20141020_g ... t_grida.7z


When I switched code to use BROWSE control, everything works OK!
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Another Grid Problem

Post by serge_girard »

Mol,

It is acting very strange, sometime the last record is the same as in your example, some another record is the last.
Could it be that some characters in NAZWA are control characters that provoke an EOF?

Serge
There's nothing you can do that can't be done...
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Another Grid Problem

Post by mol »

serge_girard wrote:Mol,

Could it be that some characters in NAZWA are control characters that provoke an EOF?

Serge
I don't think so. I've tested it on mine data set and effects were the same.
edk
Posts: 914
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Another Grid Problem

Post by edk »

Hello all. Sorry for my poor English.
I am a new user on the forum and just starting with HMG.
It's me, who have this problem which describes Mol.

@Mol: Dziekuje panie Marku. Wlasnie admin aktywowal moje konto.

@Serge: This is not a problem characters in the NAZWA. You can replace it with any character.

Notice that when you are editing a fake last record changes enroll in a truly last record.

The second problem: I do not know how to properly define the edit control field in the 'Grid'.
For example: if the field is of type 'C' and has a width 3 characters, to be available all characters to input (letters, numbers and specials). I can't set properly mask. Avaiable are "A" and "9" symbols only. If set "A" I can type only letters, if '9' - only digits. If I set mask as " ", I can type more than 3 characters. How to restrict to 3 characters?
{'TEXTBOX','CHARACTER',' '}
It seems to me, that the parameter is missing MAXLENGHT, as in the case of a TextBox Control.

Regards, Edward.
Attachments
grid_test.7z
My source translated to english
(6.99 KiB) Downloaded 126 times
User avatar
serge_girard
Posts: 3167
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Another Grid Problem

Post by serge_girard »

Marek,

I sorted your STANY.DBF on MG+GRUPA+TOWAR and now it seems OK...

Serge
There's nothing you can do that can't be done...
edk
Posts: 914
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Another Grid Problem

Post by edk »

OK.
But I can't sort every time when change/append/delete records.. I have a database in which there are more than 100k records and MG's are more than 30.

Is it possible to define the skipBlock for a Grid, similarities as for TBrowse? I could not use filtering, but appropriately index and define skipBlock.

EdK.
User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Another Grid Problem

Post by mol »

edk wrote: @Mol: Dziekuje panie Marku. Wlasnie admin aktywowal moje konto.
Regards, Edward.
Sorki, uznałem, że trzeba rozdzielić te problemy i zacząć od ważniejszego...
PS. Proszę mi mówić na ty... :lol:

English:
Sorry for Polish, but this message is significant for Edward only. :)
Post Reply