The exact same thing happened when I specified the number of rows in the
rcp file.

Besides, according to the 3.5 documentation on TblGetNumberOfRows() ...
  "The value returned by this function indicates the maximum number of
   rows that can be displayed on the screen at one time."

In a region 130 pixels long, I should be able to display at least one
row, you'd think.

alan

---Original Message---
From: "Palm Developer Forum" <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Thu, 14 Feb 2002 13:36:17 -0500
Subject: RE: My own table troubles

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/



-- 
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