FIELD Selector for HMG ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

FIELD Selector for HMG ?

Post by AUGE_OHR »

hi,

when have a Array from DbStruct() i want to select FIELD to use.
i got a CLASS for Xbase++ but not for HMG.
Picklist.jpg
Picklist.jpg (22.69 KiB) Viewed 2794 times
does somebody already made a Function or CLASS :?:
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: FIELD Selector for HMG ?

Post by andyglezl »

Easy...

Code: Select all

 
                   @ 250,010 LISTBOX list_1 width 180 HEIGHT 135 TOOLTIP "Doble Click  -->" SORT  FONT "Verdana" SIZE 09 ;
                              ON DBLCLICK { || form_3.list_2.additem(form_3.list_1.item(form_3.list_1.value)), ;
                                               form_3.list_1.deleteitem(form_3.list_1.value) } 
 
                    @ 250,200 LISTBOX list_2 width 180 HEIGHT 135 TOOLTIP "Doble Click  <--" SORT FONT "Verdana" SIZE 09 ;
                              ON DBLCLICK { || form_3.list_1.additem(form_3.list_2.item(form_3.list_2.value)), ;
                                               form_3.list_2.deleteitem(form_3.list_2.value) } 
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: FIELD Selector for HMG ?

Post by AUGE_OHR »

hi

i have made a PickList Demo which use DBSTRUCT()
hb_PICKLIST.ZIP
(1.84 KiB) Downloaded 161 times
Listbox on right Side have DRAGITEMS .T. so you can move Position
Hb_Picklist.jpg
Hb_Picklist.jpg (49.08 KiB) Viewed 2734 times
have fun
have fun
Jimmy
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: FIELD Selector for HMG ?

Post by fouednoomen »

Hi AUGE_OHR
i have this error after building program
error.png
error.png (94.4 KiB) Viewed 2651 times
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: FIELD Selector for HMG ?

Post by chrisjx2002 »

Hi AUGE_OHR,

There is an error when you want to move from right to left due to dragitems flag to .T.
If dragitems flag is .F. everything is OK. When dragitems flag is .T., iMax := LEN( aSelect ) is incorrect... But I don't know how to change it
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: FIELD Selector for HMG ?

Post by AUGE_OHR »

fouednoomen wrote: Wed May 27, 2020 3:37 pm i have this error after building program
please show me you Build.LOG which is generate
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: FIELD Selector for HMG ?

Post by AUGE_OHR »

hi,
chrisjx2002 wrote: Wed May 27, 2020 4:09 pm There is an error when you want to move from right to left due to dragitems flag to .T.
If dragitems flag is .F. everything is OK. When dragitems flag is .T., iMax := LEN( aSelect ) is incorrect... But I don't know how to change it
hm ...
when using dragitems .T. you have to use SPACEBAR to mark a Item.
have fun
Jimmy
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: FIELD Selector for HMG ?

Post by chrisjx2002 »

Thanks for the answer. It works with the space bar!
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: FIELD Selector for HMG ?

Post by fouednoomen »

Hi Auge_OHR

this is my Build.LOG file

hbmk2: Processing local make script: hbmk.hbm
hbmk2[PICKLIST]: Warning: File cannot be found: dbf\PICKLIST.hbp
hbmk2[PICKLIST]: Warning: Cannot find dbf\PICKLIST.hbc
Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
Cannot open E:\DATACONCEPT\copy.prg, assumed external

No code generated.
hbmk2[PICKLIST]: Error: Running Harbour compiler (embedded). 1
(C:\hmg.3.4.4\harbour\bin\harbour.exe) -n2 E:\DATACONCEPT\copy.prg strecture.prg E:\DATACONCEPT\copy.prg strecture.prg -DHBMK_HAS_PICKLIST=1 -w1 -es2 -DHBMK_HAS_HMG32=1 -q -oC:\Users\user\AppData\Local\Temp\hbmk_ssw91m.dir\ -iC:\hmg.3.4.4\harbour\include -i. -iC:\hmg.3.4.4\include
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: FIELD Selector for HMG ?

Post by AUGE_OHR »

fouednoomen wrote: Thu May 28, 2020 8:18 pm this is my Build.LOG file

hbmk2: Processing local make script: hbmk.hbm
hbmk2[PICKLIST]: Warning: File cannot be found: dbf\PICKLIST.hbp
hbmk2[PICKLIST]: Warning: Cannot find dbf\PICKLIST.hbc
Harbour 3.2.0dev (r1703241902)
Copyright (c) 1999-2016, http://harbour-project.org/
Cannot open E:\DATACONCEPT\copy.prg, assumed external
hm ... i have blue ICON which is UNICODE IDE while you use red ICON which is ANSI.

you can try to delete hbmk.hbm and just run F5 in IDE
have fun
Jimmy
Post Reply