Aaron:
 
You can't use the iStriMask() function to test for an asterisk, because the asterisk is reserved for use in that function as a wildcard. At present there doesn't seem to be a function specific to your needs, but you could "brute" force it using the following construction:
 
// see if a string has the "*" character in it...
 
string(80) sText;
string(2) sChar;
 
iN = iStrlen_STR(sText);
for(i=0;i<iN;i++) {
    Substr_STR (sChar, sText, i, 1);
    if(iStrncmp_STR(sChar, "*", 1, STR_CASE_TOLERANT)==0) break;
}
 
if(i<iN) {
    // It was found...
}
 

Dr. Stephen J. Cheesman
Research Geophysicist
Geosoft Inc.

Software and services for effective earth science decision-making. Free Oasis montaj interface now available at www.geosoft.com

Geosoft Inc.
8th Floor
85 Richmond St. W.
Toronto, Ontario
Canada M5H 2C9

Tel. (416) 369-0111
Fx. (416) 369-9599
Direct: (905)315-8207
E-mail. [EMAIL PROTECTED]

-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: iStriMask_STR()

Hi everyone,
 
Does anyone know how to use the iStriMask() function to test whether a string contains the multiplication(*) sign. I can search a string for the division sign by giving the command iStriMask_STR("*/*", sTest), where * denote any number of wilcard characters but instead of the division sign(/), I would like to search for the multiplication sign(*). Does anyone know how to do this?
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]

Reply via email to