dbTalk Databases Forums  

another setGenFilter question

comp.databases.paradox comp.databases.paradox


Discuss another setGenFilter question in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Craig
 
Posts: n/a

Default another setGenFilter question - 02-03-2007 , 08:46 PM






I have a field called hospitalnumber and I want to use setGenFilter.
The field looks like this 123-45-67 (with the dashes)
When I use code:

AR["HospitalNumber"] =stMR ;// stMR is the hospitalnumber
TCBio.setGenFilter(AR)

I get the error: "The filter expression in field HospitalNumber is not valid
"Operation not applicable"
Is this because of the dashes?

I tried to break it apart and make it look like: 123/-45/-67. But that
didn't seem to work.
Any work arounds?
Thanks
Craig
Craig Futterman




Reply With Quote
  #2  
Old   
Liz McGuire
 
Posts: n/a

Default Re: another setGenFilter question - 02-03-2007 , 09:30 PM






Craig,

stMR = "\\" + stMR

....should do it. The ObjectPAL help on setGenFilter explains that when
your filter criteria starts with a number, you need to put the \\ before it.

Liz


Craig wrote:
Quote:
I have a field called hospitalnumber and I want to use setGenFilter.
The field looks like this 123-45-67 (with the dashes)
When I use code:

AR["HospitalNumber"] =stMR ;// stMR is the hospitalnumber
TCBio.setGenFilter(AR)

I get the error: "The filter expression in field HospitalNumber is not valid
"Operation not applicable"
Is this because of the dashes?

I tried to break it apart and make it look like: 123/-45/-67. But that
didn't seem to work.
Any work arounds?
Thanks
Craig
Craig Futterman




Reply With Quote
  #3  
Old   
Craig
 
Posts: n/a

Default Re: another setGenFilter question - 02-03-2007 , 09:53 PM



Thanks Liz,
Another fun Saturday night....
Craig
"Liz McGuire" <liz (AT) paradoxcommunity (DOT) com> wrote

Quote:
Craig,

stMR = "\\" + stMR

...should do it. The ObjectPAL help on setGenFilter explains that when
your filter criteria starts with a number, you need to put the \\ before
it.

Liz


Craig wrote:
I have a field called hospitalnumber and I want to use setGenFilter.
The field looks like this 123-45-67 (with the dashes)
When I use code:

AR["HospitalNumber"] =stMR ;// stMR is the hospitalnumber
TCBio.setGenFilter(AR)

I get the error: "The filter expression in field HospitalNumber is not
valid
"Operation not applicable"
Is this because of the dashes?

I tried to break it apart and make it look like: 123/-45/-67. But that
didn't seem to work.
Any work arounds?
Thanks
Craig
Craig Futterman






Reply With Quote
  #4  
Old   
Régis
 
Posts: n/a

Default Re: another setGenFilter question - 02-04-2007 , 05:55 AM



Craig,
Quote:
Another fun Saturday night....
Is thar you call in your hospital : "The Saturday night fever..."

OT: this afternoon, I'll go to a jewellry fair, and if your wife is
interested on documentation about "french trend", just give me your mail
address, (in private)
I'll be pleased to post her all I get.
Régis




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.