CAknMultiLineDataQueryDialog

Login to reply to this topic.
Mon, 2005-04-04 15:09
Joined: 2005-04-04
Forum posts: 4
Hi!
I'm trying to use CAknMultiLineDataQueryDialog:

code:
   TTime PlaybackDate,PlaybackTime;  
   PlaybackDate.HomeTime();
   PlaybackTime.HomeTime();
   
  CAknMultiLineDataQueryDialog *dlg = CAknMultiLineDataQueryDialog::NewL(PlaybackDate,PlaybackTime,CAknQueryDialog::ENoTone);
  dlg->SetContainerWindowL(*this);
   TInt Ret = dlg->ExecuteLD(R_PLAYBACK_TIME);

rss:
RESOURCE DIALOG r_playback_time
{
   flags=EGeneralQueryFlags;
   buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
   items=
   {
     DLG_LINE
     {
       type = EAknCtMultilineQuery;
       id = EMultilineFirstLine;
       control = AVERELL_DATA_QUERY
                 {
                   layout = EMultiDataFirstDateEd;
                   label = "Enter date:";
                   control = DATE_EDITOR
                   {
                     minDate = DATE { year = 1986; } ;
                     maxDate = DATE { year = 2060; } ;
                     flags = 0;
                   };
                 };
     },

     DLG_LINE
     {
       type = EAknCtMultilineQuery;
       id = EMultilineSecondLine;
       control = AVERELL_DATA_QUERY
                 {
                   layout = EMultiDataSecondTimeEd;
                   label = "Enter time:";
                   control = TIME_EDITOR
                   {
                     minTime = TIME { second = 0; minute = 0; hour = 0; };
                     maxTime = TIME { second = 59; minute = 59; hour = 23; };
                     flags = 0;
                   };
                 };
     }            
   };
}


But every time i get "Programm closed: USER 130"
Does anybody know what is the problem? Any help will be appreciated.

Mon, 2005-04-04 17:03
Joined: 2005-03-31
Forum posts: 173
CAknMultiLineDataQueryDialog
i dont think error is in this code
User 130
This panic is raised when an index value passed to a member function of a RArray or a RPointerArray identifying an array element, is out of bounds.

so look for RArray or a RPointerArray  relalated  code.

I have written  almost exact code ( except SetContainerWindowL) and it is working

  • Login to reply to this topic.