Re: POS function


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on June 09, 2008 at 13:41:55:

In Reply to: POS function posted by Joe Forani on June 09, 2008 at 13:29:55:

Odd, I use this all the time and it works fine.

The thing that I found that did not work was concatination within the pos( ) function like this:

IF POS(' '+WORD$+' ',' PC VCR TV DVD ATV ' + _
'BDP CC CDO CMC CPC CSP ' + _
'LCD PDF PO RPO STN SUCC LG GPB ') > 0 THEN ...

Had to re-write like this:

IF POS(' '+WORD$+' ',' PC VCR TV DVD ATV ') > 0 OR _
POS(' '+WORD$+' ','BDP CC CDO CMC CPC CSP ') > 0 OR _
POS(' '+WORD$+' ','LCD PDF PO RPO STN SUCC LG GPB ') > 0 THEN ...

It did not report any error, it just didn't work!


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]