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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > check if value is a number

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-03, 08:38
visualsander visualsander is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
check if value is a number

Hi group,

we concatenate 2 fields together. eg:
segment1||'_'||segment2

Segment1 can have values like: MV200 or MVAR or 100 or whatever.
Segment2 can have values like: A or AA or AB or 1 or 01 or 99 or it can be empty.

How can I check that segment2 is a number? Is there a IsNumeric() function or something like in VB?

Thnx in @vance

VS
Reply With Quote
  #2 (permalink)  
Old 04-09-03, 17:03
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
yes,

If(IsNumeric(segment2)) then
lalala
else
lololo
end if
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