I found a simple way to fix the problem.
TablePtr table = GetObjectPtr(fooID);
TblMarkTableInvalid(table);
TblRedrawTable(table);
Now back to the problem I originall had with that weird black box appearing
in my table row for no apparent reason. If anyone knows why that might
occur,
How do you go about refreshing a Field in a table? I have the table
displaying 0.0 if nothing else is there.
However, if I delete the 0.0 and click another field, the 0.0 isn't
displayed, but it's there. It will be displayed if I delete a part of it.
I can even select nothingness, which is the
I not sure what you mean.
For the 2 textTableItems I have a global 2D array for the handles, if that
is what you mean. I had no problem with this. The problem arose when I
added a 3rd column which was a customTableItem. If I move the
customTableItem around, it displays the black block in the
I have a table set up like this:
textTableItem | textTableItem | customTableItem
I just encounted something very odd. Whenever I click on a record, the
field directly before the customTableItem gets a black box displayed in
it. It's exactly the same size of the field in the customTableItem.
I
I programmed an app that uses 3 databases, and they're set up in a one to
many relationship. It works great. I even have a delete which will work
through the sub databases and delete useless records in them too.
(Basically what a database is to plam, is what I consider a table... so if
it's
I have a table set up like this:
textTableItem | textTableItem | customTableItem
I just encounted something very odd. Whenever I click on a record, for some
reason the field directly before the customTableItem causes a black box to
appear in it. It's exactly the same size of the field in the
Perhaps you meant to pass 'i' and not 'index' to DmReleaseRecord()?
THANK YOU!!! *kicks himself for the oversight* :-)
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola write the funniest things.
one possible reason, the db is already open. take a look at the error
code
DbGetRecord returned when it failed. I will tell you exactly why.
Do you mean the record is already open? Yes, I already checked that. This
section of the code is accessing a database which is not being touched at
Weird, I just replaced DmGetRecord with DmQueryRecord and the problem goes
away.
When I used DmGetRecord, it did what I wanted it to do, but it would give me
the error message.
Any ideas on that?
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on
Hey guys, what could be causing this error? I'm using Palm OS 3.3 and the
error is 5424: Err Getting Rec. Normally it's because of a busy record when
the DmGetRecord is called, but I don't see how this is possible.
This is the function that causes it:
void foo(UInt index)
{
tblFpur
I was getting a NULL error after the delete. If I used Remove... no
problem! I found out in the knowledge base that the delete sets the record
to NULL before it moves it. The Remove releases the chunk.
Now why on earth would that cause a problem? I'm not trying to read from
the record I'm
I was using DmDeleteRecord(..) in my application until I hit a section where
I kept getting an error. I did some debugging and all the correct
information was being sent to my delete function. For the sake of doing so,
I tried DmRemoveRecord(..) instead, and it worked!
What would cause this to
off topic
char TempCode[5] = \0;
Correct me if I'm wrong, but don't you assign arrays in this fashion?
// Assuming that the \0 was a NUL terminator
char TempCode[] = ;
// or
char TempCode[5] = {'0', '0', '0', '0', '\0'};
/off topic
Sincerely,
Timothy D. Astle
People on Jolt cola
I was working on an idea similar to that.
I have the records being sorted, and in the sort function, it will
accumulate the number of matching records. I was hoping that I could just
only use DmQueryNextInCategory() for X amount of times so it only displayed
the matched top records. However,
I have a table that I only want certain records to be viewable. Currently I
have a sort set up to place the files I want at the top of the table. I
figured if I could count the number of matches in my sort, I could use
that somehow to only display the first X records on the table. I tried
Actually, it looks kind of like you might be deleting a locked
handle somewhere, as you thought. Also, try changing the incrementation
of your counters in your loop to j++ and i++. Just a thought...
Thanks for the suggestions, but the post increment didn't help. I didn't
figure it would in
Perhaps you're nesting the call in a
function that is actually causing the problem?
Well, on my frmCloseEvent, I call this function.
Timothy D. Astle
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Ugh, sorry about that previous post. I hit ctrl+Enter by mistake.
Perhaps you're nesting the call in a
function that is actually causing the problem?
Well, on my frmCloseEvent, I call this function.
void DisSelectViewFreeHandles()
{
int i, j;
for(i = 0; i DIS_TABLE_ROWS; ++i)
Okay, this is probably a stupid question, but I'd like an answer nontheless
:-)
Is the following an adequate way of telling whether or not a handle has been
freed?
if(handle != NULL)
MemHandleFree(handle);
The reason I'm asking this is because I'm trying to free text handles in a
table upon
Here goes another table question :-)
When you exit a form, which has a table with textTableItems on it, will the
handles to these fields automatically be freed? I wrote up a little
function to handle this, but I get a NULL pointer error when it's used on my
frmCloseEvent. I assume this is
Did you try reloading the form after this is done? (note I haven't tried
this before... just offering suggestions :-)
Timothy D. Astle
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Kitty Hawk
with the sdks.
-bob mckenzie, [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tim
Astle
Sent: Thursday, June 29, 2000 6:28 AM
To: Palm Developer Forum
Subject: simple table question
Hey guys,
When dealing with loading textTableItems
I have a table with many records on it. I would like to set it up so that
the table will only display records based on a certain criteria. In SQL, it
would do something like
SELECT * FROM table WHERE columnName = whatever
I'm doing some research on DmQuickSort, using the DmComparF parameter...
What column has to be not editable?
If it's the text one, you can just use a customTableItem instead of a
textTableItem and create a Custom Draw Callback procedure to display the
text.
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola
Hey guys,
When dealing with loading textTableItems in a table, they each require a
handle. Now what I was wondering is should I declare an 8 row x 2 column 2
dimentional array or make a linked list to handle this? I'm not certain of
this because I don't really understand the backend aspect to
Thanks a lot buddy!
Timothy D. Astle
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Kitty Hawk Studios
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see
I was wondering how a callback actually functions within the code? I have
many of them implemented, and I want to know specifically in what order they
are called.
// Set custom Load Procedures
TblSetLoadDataProcedure(table, 0, AField);
TblSetLoadDataProcedure(table, 1, BField);
// Set custom
Create the 2nd column in constructor. Then just apply the same technique
you used on the first one.
I know that's a big vague, but depending on what you want to do the
procedure can be different.
http://www.palm.com/devzone/docs/pptdg/ch08.htm#P27_302
+
Timothy D. Astle
Embedded
Thank, Let me reinvent the wheel one more time..:)
Actually, you might not need to reinvent the wheel just take a quick
look at the Memopad tutorial that comes with codewarrior :-) It should more
than help.
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
I was wondering what the most popular solution for dynamically creating and
deleting handles?
I'm thinking of doing something like this:
typedef struct DisTableH_
{
handle jurisdictionH;
handle odometerH;
struct *linkp;
} DisTableH, *DisTableHPtr;
// Global pointers...
Oops... struct *linkp should be struct DisTableH_ *linkp
I was wondering what the most popular solution for dynamically creating
and
deleting handles?
I'm thinking of doing something like this:
typedef struct DisTableH_
{
handle jurisdictionH;
handle odometerH;
struct
?)
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Kitty Hawk Studios
Tim Astle [EMAIL PROTECTED] wrote in message
news:[EMAIL
Find.c, Line: 818, Error launching app for Find.
This is the first time I've ever seen this error while running Gremlins.
Any of you guys have a clue as to what it is or how to fix it?
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola
Hey guys,
Table.c, Line: 2604, Invalid
parameter
Anyone run into this before? This sometimes occurs in my table when I click
in a field. I have a 2 column table with textTableItems, which save and
load data. This table is dynamic and has a scrollbar as well.
Any ideas or suggestions?
Okay, I found them:
fld-attr.singleLine = true;
fld-maxChars = MAX;
Can anyone read my posts? If you can read them, let me know. I found it a
bit strange that I haven't recieved many replies to my posts in the last
while. I know the newsgroup has been tinkered with... so maybe I have a
How do you ensure that a textTableItem isn't multilined? Also, is there a
way to set the character limit on these fields?
I've searched the attributes, but I don't see anything that stands out.
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on
IT industry when it comes to management setting
rates. (especially in scenarios like this)
Just my 2 cents...
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
lol What about the important things... how does the 69 fit into all of
this? :-)
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
(0);
}
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
. I just need a good example of how to use
TblSetLoadDataProcedure(foo, ..., ...); and TblSetSaveDataProcedure(foo,
..., ...); so I can save 2 fields (1 is numeric, 1 is a string) and display
them.
Any suggestions? *continuing to hack away while waiting for a response :-)*
--
Tim Astle
Off the top of my head, try to step to that part of the error in Gremlins.
That might allow you to see what it's doing to cause the error... then just
take it from there.
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access
of 8 by 2? Or am I
wy off track here.
Regards,
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
Thanks Dave. Sounds good.
I have it already set up somewhat like your first suggestion. I have 2
pieces of data being concatenated into 1 string and being displayed already.
However, the 2nd suggestion sounds like something I should attempt.
--
Tim Astle
--
For information on using
haha, I won't go there :-)
Yeah, your class does sound intriguing to say the least. However, I'm doing
this project in good ol' C. However, I'd still be interested in seeing the
wrappers. (brings back memories of my DirectX days...)
--
Tim Astle
--
For information on using the ACCESS
lol, that's the first time I was told to RTFM... :-) Yup, I RTFM before I
posted and that's what I thought. However, there have been people messing
with this stuff for a while, so I was wondering if there was another
solution.
Thanks,
--
Tim Astle
--
For information on using the ACCESS
Is it possible to have an entire row selectable in a table? I did some
research into it by looking at past newsgroup postings (escribe) but there
didn't seem to be a way to do it.
Has this changed, or am I overlooking something?
Thanks in advance,
--
Tim Astle
--
For information
How old? I don't seem to be getting any old messages. I'm using this
newsgroup in Outlook Express 5 though.
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
that is)
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
Below are two functions which I find really useful. They work together. In
your application, just do the following:
SetFieldTextFromStr(fldIDgoesHere, str);
Voila! I hope this helps.
Regards,
Tim Astle
/***
*
* FUNCTION
Wouldn't you need a form ID in FrmInitForm?
form = FrmInitForm(ModalDialogID);
--
Tim Astle
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
How do you go about refreshing a Field in a table? I have the table
displaying 0.0 if nothing else is there.
However, if I delete the 0.0 and click another field, the 0.0 isn't
displayed, but it's there. It will be displayed if I delete a part of it.
I can even select "nothingness", which is
I found a simple way to fix the problem.
TablePtr table = GetObjectPtr(fooID);
TblMarkTableInvalid(table);
TblRedrawTable(table);
Now back to the problem I originall had with that weird black box appearing
in my table row for no apparent reason. If anyone knows why that might
occur,
I have a table set up like this:
textTableItem | textTableItem | customTableItem
I just encounted something very odd. Whenever I click on a record, the
field directly before the "customTableItem" gets a black box displayed in
it. It's exactly the same size of the field in the customTableItem.
I not sure what you mean.
For the 2 textTableItems I have a global 2D array for the handles, if that
is what you mean. I had no problem with this. The problem arose when I
added a 3rd column which was a customTableItem. If I move the
customTableItem around, it displays the "black block" in
I have a table set up like this:
textTableItem | textTableItem | customTableItem
I just encounted something very odd. Whenever I click on a record, for some
reason the field directly before the "customTableItem" causes a black box to
appear in it. It's exactly the same size of the field in
I programmed an app that uses 3 databases, and they're set up in a one to
many relationship. It works great. I even have a delete which will work
through the "sub databases" and delete useless records in them too.
(Basically what a database is to plam, is what I consider a table... so if
it's
Hey guys, what could be causing this error? I'm using Palm OS 3.3 and the
error is 5424: Err Getting Rec. Normally it's because of a busy record when
the DmGetRecord is called, but I don't see how this is possible.
This is the function that causes it:
void foo(UInt index)
{
tblFpur
Weird, I just replaced DmGetRecord with DmQueryRecord and the problem goes
away.
When I used DmGetRecord, it did what I wanted it to do, but it would give me
the error message.
Any ideas on that?
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People
one possible reason, the db is already open. take a look at the error
code
DbGetRecord returned when it failed. I will tell you exactly why.
Do you mean the record is already open? Yes, I already checked that. This
section of the code is accessing a database which is not being touched at
I was getting a NULL error after the delete. If I used Remove... no
problem! I found out in the knowledge base that the delete sets the record
to NULL before it moves it. The Remove releases the chunk.
Now why on earth would that cause a problem? I'm not trying to read from
the record
I was using DmDeleteRecord(..) in my application until I hit a section where
I kept getting an error. I did some debugging and all the correct
information was being sent to my delete function. For the sake of doing so,
I tried DmRemoveRecord(..) instead, and it worked!
What would cause this to
I have a table that I only want certain records to be viewable. Currently I
have a sort set up to place the files I want at the top of the table. I
figured if I could count the number of "matches" in my sort, I could use
that somehow to only display the first X records on the table. I tried
I was working on an idea similar to that.
I have the records being sorted, and in the sort function, it will
accumulate the number of "matching" records. I was hoping that I could just
only use DmQueryNextInCategory() for X amount of times so it only displayed
the matched top records. However,
I have a table with many records on it. I would like to set it up so that
the table will only display records based on a certain criteria. In SQL, it
would do something like
SELECT * FROM table WHERE columnName = whatever
I'm doing some research on DmQuickSort, using the DmComparF
Okay, this is probably a stupid question, but I'd like an answer nontheless
:-)
Is the following an adequate way of telling whether or not a handle has been
freed?
if(handle != NULL)
MemHandleFree(handle);
The reason I'm asking this is because I'm trying to free text handles in a
table
Perhaps you're nesting the call in a
function that is actually causing the problem?
Well, on my frmCloseEvent, I call this function.
Timothy D. Astle
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Ugh, sorry about that previous post. I hit ctrl+Enter by mistake.
Perhaps you're nesting the call in a
function that is actually causing the problem?
Well, on my frmCloseEvent, I call this function.
void DisSelectViewFreeHandles()
{
int i, j;
for(i = 0; i DIS_TABLE_ROWS; ++i)
Actually, it looks kind of like you might be deleting a locked
handle somewhere, as you thought. Also, try changing the incrementation
of your counters in your loop to j++ and i++. Just a thought...
Thanks for the suggestions, but the post increment didn't help. I didn't
figure it would in
Here goes another table question :-)
When you exit a form, which has a table with textTableItems on it, will the
handles to these fields automatically be freed? I wrote up a little
function to handle this, but I get a NULL pointer error when it's used on my
frmCloseEvent. I assume this is
Hey guys,
When dealing with loading textTableItems in a table, they each require a
handle. Now what I was wondering is should I declare an 8 row x 2 column 2
dimentional array or make a linked list to handle this? I'm not certain of
this because I don't really understand the backend aspect to
What column has to be not editable?
If it's the text one, you can just use a customTableItem instead of a
textTableItem and create a Custom Draw Callback procedure to display the
text.
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola
ould look
at the example code that ships with the sdks.
-bob mckenzie, [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim
Astle
Sent: Thursday, June 29, 2000 6:28 AM
To: Palm Developer Forum
Subject: simple table question
Hey guy
I was wondering how a callback actually functions within the code? I have
many of them implemented, and I want to know specifically in what order they
are called.
// Set custom Load Procedures
TblSetLoadDataProcedure(table, 0, AField);
TblSetLoadDataProcedure(table, 1, BField);
// Set custom
Thanks a lot buddy!
Timothy D. Astle
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Kitty Hawk Studios
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
Create the 2nd column in constructor. Then just apply the same technique
you used on the first one.
I know that's a big vague, but depending on what you want to do the
procedure can be different.
http://www.palm.com/devzone/docs/pptdg/ch08.htm#P27_302
+
Timothy D. Astle
Embedded
Find.c, Line: 818, Error launching app for Find.
This is the first time I've ever seen this error while running Gremlins.
Any of you guys have a clue as to what it is or how to fix it?
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola
suggestion?)
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+
People on Jolt cola write the funniest things.
A-10 Obedience Guide,
Kitty Hawk Studios
Tim Astle [EMAIL PROTECTED] wrote in message
I was wondering what the most popular solution for dynamically creating and
deleting handles?
I'm thinking of doing something like this:
typedef struct DisTableH_
{
handle jurisdictionH;
handle odometerH;
struct *linkp;
} DisTableH, *DisTableHPtr;
// Global pointers...
Oops... struct *linkp should be struct DisTableH_ *linkp
I was wondering what the most popular solution for dynamically creating
and
deleting handles?
I'm thinking of doing something like this:
typedef struct DisTableH_
{
handle jurisdictionH;
handle odometerH;
struct
Thank, Let me reinvent the wheel one more time..:)
Actually, you might not need to reinvent the wheel just take a quick
look at the Memopad tutorial that comes with codewarrior :-) It should more
than help.
+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
in today's IT industry when it comes to management setting
rates. (especially in scenarios like this)
Just my 2 cents...
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
ize(*dataH);
return(0);
}
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
Wouldn't you need a form ID in FrmInitForm?
form = FrmInitForm(ModalDialogID);
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
that range of 8 by 2? Or am I
wy off track here.
Regards,
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
Off the top of my head, try to step to that part of the error in Gremlins.
That might allow you to see what it's doing to cause the error... then just
take it from there.
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com
. I just need a good example of how to use
TblSetLoadDataProcedure(foo, ..., ...); and TblSetSaveDataProcedure(foo,
..., ...); so I can save 2 fields (1 is numeric, 1 is a string) and display
them.
Any suggestions? *continuing to hack away while waiting for a response :-)*
--
Tim Astle
Is it possible to have an entire row selectable in a table? I did some
research into it by looking at past newsgroup postings (escribe) but there
didn't seem to be a way to do it.
Has this changed, or am I overlooking something?
Thanks in advance,
--
Tim Astle
--
For information on using
lol, that's the first time I was told to RTFM... :-) Yup, I RTFM before I
posted and that's what I thought. However, there have been people messing
with this stuff for a while, so I was wondering if there was another
solution.
Thanks,
--
Tim Astle
--
For information on using the Palm
Below are two functions which I find really useful. They work together. In
your application, just do the following:
SetFieldTextFromStr(fldIDgoesHere, str);
Voila! I hope this helps.
Regards,
Tim Astle
How old? I don't seem to be getting any old messages. I'm using this
newsgroup in Outlook Express 5 though.
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
that is)
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
);
handled = true;
break;
case EditSelectAll:// Select all of the text
fld = GetFocusObjectPtr();
if(fld)
FldSetSelection(fld, 0, FldGetTextLength(fld));
handled = true;
break;
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe
are the most core routines needed. The link should more than help you
along the way.
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
.
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
test
--
Tim Astle
Bulent Gecer [EMAIL PROTECTED] wrote in message
news:8168@palm-dev-forum...
test
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
m?
Thanks in advance.
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
f a larger sequenced chunk of
memory. (record)
Perhaps you should take a look at this page:
http://www.palm.com/devzone/docs/pptdg/ch06.htm#TopOfPage
Regards,
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
, etc.) I realize I'll probably need to sort through the records
somehow and probably retrieve the indexes and delete them in sequence
but I've never started on this yet. Is there a better way?
Thanks,
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe,
Yeah, it is 15x9. I believe I read in a book they stated 9x15, which is
strange because of the tried and true X-axis and Y-axis system. Ahh, the
world of Palm programming... at least 0,0 is still the top left :-)
--
Tim Astle
--
For information on using the Palm Developer Forums
I'm using OS 3.3, but what you described sounds exactly like what I'm
experiencing.
Now to figure out a solution...
--
Tim Astle
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
1 - 100 of 189 matches
Mail list logo