If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > char search on spl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-04, 04:17
obc1007 obc1007 is offline
Registered User
 
Join Date: Jun 2004
Posts: 1
Post char search on spl

Hi. How can i do a search of a character in a string on spl.
The systax doesn´t work on a stored procedure:
for i = 1 to length(string)
strint(i) = chrSearch
end for
thanks
Reply With Quote
  #2 (permalink)  
Old 06-03-04, 08:26
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please test with:

LET var=myvar[1,4]. --- This, print the first four characters.
Or
for i = 1 to length(string)
if strint(i) = "chrSearch"
end for

Gustavo.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On