You haven't specified any rows.

Try:

> TABLE ID tbTable AT ( 5 15 150 130 ) ROWS 10 COLUMNS 4
> 
> 
> ----------
> From:         [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Reply To:     Palm Developer Forum
> Sent:         Thursday, February 14, 2002 12:56 PM
> To:   Palm Developer Forum
> Subject:      My own table troubles
> 
> 
> I am having my own troubles with tables.  When I call
> TblGetNumberOfRows(), it always returns 0.  Any ideas why?
> 
> Here is the pilrc input -
> 
> FORM ID fmName AT ( 0 0 160 160 )
> NOFRAME
> USABLE
> MENUID theMenu
> BEGIN
>     TITLE "TITLE"
> 
>     TABLE ID tbTable AT ( 5 15 150 130 ) COLUMNS 4
> 
>     BUTTON "B1" ID bt1 AT (   7 147 40 AUTO) USABLE FONT 1
>     BUTTON "B2" ID bt2 AT (  60 147 40 AUTO) USABLE FONT 1
>     BUTTON "B3" ID bt3 AT ( 113 147 40 AUTO) USABLE FONT 1
> END
> 
> and the code looks like -
> 
>   tableP = FrmGetObjectPtr(formP, FrmGetObjectIndex(formP, tbTable));
>   numRows = TblGetNumberOfRows(tableP);
> 
> Any ideas now?
> 
> alan
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to