Grid: ITEMS length mismatch.

HMG en Español

Moderator: Rathinagiri

Post Reply
claudiotedesco
Posts: 131
Joined: Thu Jul 31, 2008 12:05 pm

Grid: ITEMS length mismatch.

Post by claudiotedesco » Tue Mar 30, 2010 12:21 pm

Hola Gente

Estoy armando un formulario con un grid pero me da el siguiente error

Date:30/03/2010 Time: 09:16:56
Error: HMG 3.0.27 (2010.03.27)
Grid: ITEMS length mismatch. Program Terminated
Called from _DEFINEGRID(227)
Called from MAIN_BUTTON_6_ACTION(75)
Called from (b)MAIN(397)
Called from _DOCONTROLEVENTPROCEDURE(4968)
Called from EVENTS(1415)
Called from _DOMESSAGELOOP(0)
Called from _ACTIVATEWINDOW(4610)
Called from DOMETHOD(7351)
Called from MAIN(13)


EL FMG ES EL SIGIUENTE

* HMG-IDE Form Designer Generated Code
* (c) Roberto Lopez - http://harbourminigui.googlepages.com

DEFINE WINDOW TEMPLATE AT 261 , 371 WIDTH 550 HEIGHT 350 VIRTUAL WIDTH Nil VIRTUAL HEIGHT Nil TITLE "ventana 4" ICON NIL MODAL CURSOR NIL ON INIT Nil ON RELEASE Nil ON INTERACTIVECLOSE Nil ON MOUSECLICK Nil ON MOUSEDRAG Nil ON MOUSEMOVE Nil ON SIZE Nil ON PAINT Nil BACKCOLOR Nil ON GOTFOCUS Nil ON LOSTFOCUS Nil ON SCROLLUP Nil ON SCROLLDOWN Nil ON SCROLLLEFT Nil ON SCROLLRIGHT Nil ON HSCROLLBOX Nil ON VSCROLLBOX Nil

DEFINE LABEL Label_1
ROW 10
COL 200
WIDTH 200
HEIGHT 20
VALUE "BASE de DATOS"
FONTNAME "Arial"
FONTSIZE 12
TOOLTIP ""
FONTBOLD .T.
FONTITALIC .F.
FONTUNDERLINE .F.
FONTSTRIKEOUT .F.
HELPID Nil
VISIBLE .T.
TRANSPARENT .F.
ACTION Nil
AUTOSIZE .F.
BACKCOLOR {0,255,255}
FONTCOLOR {255,128,192}
END LABEL

DEFINE GRID Grid_1
ROW 70
COL 40
WIDTH 460
HEIGHT 160
ITEMS { {""} }
VALUE { 1,1 }
WIDTHS { 100,150,150}
HEADERS {'Codigo', "Nombre","Apellido"}
FONTNAME "Arial"
FONTSIZE 9
TOOLTIP ""
ONCHANGE Nil
ONGOTFOCUS Nil
ONLOSTFOCUS Nil
FONTBOLD .F.
FONTITALIC .F.
FONTUNDERLINE .F.
FONTSTRIKEOUT .F.
ONDBLCLICK Nil
ONHEADCLICK Nil
ONQUERYDATA Nil
MULTISELECT .F.
ALLOWEDIT .F.
VIRTUAL .F.
DYNAMICBACKCOLOR Nil
DYNAMICFORECOLOR Nil
COLUMNWHEN Nil
COLUMNVALID Nil
COLUMNCONTROLS Nil
SHOWHEADERS .T.
CELLNAVIGATION .F.
NOLINES .F.
HELPID Nil
IMAGE Nil
JUSTIFY Nil
ITEMCOUNT Nil
BACKCOLOR NIL
FONTCOLOR NIL
HEADERIMAGES Nil
ROWSOURCE 'agenda'
COLUMNFIELDS {'codigo','nombre','apellido'}
ALLOWAPPEND .F.
ALLOWDELETE .F.
BUFFERED .F.
DYNAMICDISPLAY Nil
ONSAVE Nil
END GRID

END WINDOW

User avatar
esgici
Posts: 4251
Joined: Wed Jul 30, 2008 9:17 pm
Location: iskenderun / Turkiye
Has thanked: 131 times
Been thanked: 42 times
Contact:

Post by esgici » Tue Mar 30, 2010 12:40 pm

Hola Claudio

It's seeming you have change

ITEMS { {""} }

to :

ITEMS { {"","",""} }

Saludos, regards

--

Esgici
Viva INTERNATIONAL HMG :D

claudiotedesco
Posts: 131
Joined: Thu Jul 31, 2008 12:05 pm

Post by claudiotedesco » Tue Mar 30, 2010 12:46 pm

Muchas gracias Esgici, funciono perfecto

Claudio

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest