re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread druid
found it If I clicked save button before I entered data this size = StrLen(name)+1+ StrLen(level)+1+ StrLen(expFld)+1+ StrLen(desc)+1+ StrLen(mItems)+1+ StrLen(startz)+1+ StrLen(heritage)+1+ StrLen(citytask)+1+ StrLen(sabatoge)+1+ StrLen(repet)+1+ StrLen(access)+1+ StrLen(freeport)+1+ St

Re: windows console application

2005-07-23 Thread Layne Lund
I agree. If you are interested in doing console programming with C/C++ using the Eclipse IDE, it looks like http://www.eclipse.org/downloads/index.php contains plugins to do so. You probably need to download the full version of Eclipse rather than using the one that ships with the PalmOS Develope

Re: Using Palm databases

2005-07-23 Thread Layne Lund
On 7/23/05, will rogers <[EMAIL PROTECTED]> wrote: > > Hi Layne, > > Since no one else seems to be helping out I'll give you my two cents. > > > > >1) My first question is that at the moment, I am using a temporary > >Field to display text for debugging purposes. > > Jürgen Wind's suggestion ab

Re: Using Palm databases

2005-07-23 Thread Layne Lund
On 7/23/05, Jürgen Wind <[EMAIL PROTECTED]> wrote: > Hi Layne, > > Layne Lund schrieb: > > I posted the following message to the mailing list over a week ago, > > but have not received any responses yet. I am particularly interested > > in what anyone has to say about question #2. I look forward

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread Chris Tutty
From: "druid" <[EMAIL PROTECTED]> > I tried you code change and it does work > Now for the wierd thing > > I added this > >StrCopy(text, "UNKNOWN"); > } > now if I dont fill in any of the fields and it writes this to > the record, the very first field has the first three characters > cut of

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread Chris Tutty
From: "druid" <[EMAIL PROTECTED]> > The problem is I need to know what is in fldName before I try > and use GetFieldData and if the contents or the field is NULL > not do the call to the GetFieldData routine > Nope, I think you're doing the right thing bu checking for NULL data within the functi

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread Chris Tutty
From: "Jonathan King" <[EMAIL PROTECTED]> > Here is a simple way to do what you are doing. > > static void GetFieldData( UInt16 fld, Char *text ) > { > FormPtr frm = FrmGetActiveForm(); > FieldPtrfldP = FrmGetObjectPtr(frm, > FrmGetObjectIndex(frm,fld)); > > if(FldGetTextLegnth(fldP))> whic

re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread druid
I tried you code change and it does work Now for the wierd thing I added this static void GetFieldData( UInt16 fld, Char *text ) { FormPtr frm = FrmGetActiveForm(); FieldPtr fldP = FrmGetObjectPtr(frm, FrmGetObjectIndex(frm,fld)); if(FldGetTextLength(fldP)) { StrCopy(text, FldGetTextPtr(f

Re: copy protect my application

2005-07-23 Thread Rob
set the copy protect bit in the application. that'll work for at least 2 seconds. On Wed, 20 Jul 2005 19:18:54 -0600, Dustin Litchfield <[EMAIL PROTECTED]> wrote: I am trying to figure out how to copy protect my application so it can't be beamed from one handheld to another. I have figured

Readonly files on LifeDrive

2005-07-23 Thread Jan Slodicka
Hello, could anybody explain the role of readonly attribute for the LifeDrive databases? Looks like the DBs that were marked originally with this attr are pre-installed in RAM after hard reset. Relying on this attribute seems to be risky as there are applications using it for different purposes.

Re: An idea for a freeware that might help with NVFS

2005-07-23 Thread Jan Slodicka
Resco Locker is out on our web. We did not add the sources mainly because there is nothing to learn from them. (Plus we would have to pay more attention concerning what can be published.) Looks like it helps for some instable apps (e.g. OKey, TextPlus, ClipPro), for the others not. (Fonts4OS5 part

RE: Checking to see if field has data in it before passing it routine

2005-07-23 Thread Jonathan King
Here is a simple way to do what you are doing. static void GetFieldData( UInt16 fld, Char *text ) { FormPtr frm = FrmGetActiveForm(); FieldPtrfldP = FrmGetObjectPtr(frm, FrmGetObjectIndex(frm,fld)); if(FldGetTextLegnth(fldP)) { StrCo

Re: Using Palm databases

2005-07-23 Thread Baxter
Keep in mind that closing and opening the database take time - and performance is important on a Palm. Personally, I keep most of my databases open all the time - unless it's one that only gets used occasionally. Sometimes globals are appropriate for an app. -- -

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread druid
since fldName is a non database assigned field this means its NULL i think So I need to check it for that before I use the GetFieldData the name length is set to 255 when its declared so passing the nameLen would always be 256 and it is NULL because nothing has been assigned Char name[256]; The pr

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread druid
Also that means that I will need to check the strlen of the field before I pass the info, because were getting a field then putting it into Char name[256]; -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Checking to see if field has data in it before passing it routine

2005-07-23 Thread druid
First im concerned that the field is not NULL, in other words when the form is opened, the field exists with nothing in it. If I have if figured correctly that is NULL if all contents are removed from the field that means the fields contents are NULL Im concerned that both situations are handled --

RE: Using SndStreamCreate to record sampled sound

2005-07-23 Thread Eric Cloninger
Thanks for the link. I tried adapting that code to my situation and I still get a quick return from SndStreamCreate. The simulator doesn't pass the call through to my PC microphone but it's nice to dream. However, on my T|C with an attached mic, it also doesn't work. This has to work somehow...

Re: Using Palm databases

2005-07-23 Thread Roger Stringer
Subject: Re: Using Palm databases From: Layne Lund <[EMAIL PROTECTED]> Date: Fri, 22 Jul 2005 15:36:18 -0700 I posted the following message to the mailing list over a week ago, but have not received any responses yet. Sometimes you just aren't going to get a response, and your original post

Re: Pop-up lists - incremental search

2005-07-23 Thread Jürgen Wind
Marianella Diaz schrieb: > Hi guys, > > I've a Pop-up list with the incremental search attribute set with > LstGlueSetIncrementalSearch, but it don't works... it crash... :( > > I'm using in my list LstSetListChoices(lstP, NULL, 24); > > Can I do this? :( > How should this work ? If you use L

Re: Using Palm databases

2005-07-23 Thread Jürgen Wind
Hi Layne, Layne Lund schrieb: > I posted the following message to the mailing list over a week ago, > but have not received any responses yet. I am particularly interested > in what anyone has to say about question #2. I look forward to any > responses anyone has. > > Thank you, > > Layne > >

Re: Converter for PC/AT keyboard?

2005-07-23 Thread Alan J. McFarlane
In article news:[EMAIL PROTECTED], Larry Johnson wrote: I have a scenario where my client would rather have a cheap, fullsize PC/AT keyboard; rather than the wireless fold-up. Do you know of any converter cable/box and palm software to allow a Zire31, for example, to be physically connected and

how to program to realize the UI like Textplus

2005-07-23 Thread holycom
how to realize the UI like Textplus(http://www.smartcell.com/id20.htm) how to program to show dynamic pop-up list or table like Textplus Thank you! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/