Click here to Skip to main content
15,924,581 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question[Message Deleted] Pin
srisant12-Nov-08 0:55
srisant12-Nov-08 0:55 
AnswerRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Ashfield12-Nov-08 1:09
Ashfield12-Nov-08 1:09 
General[Message Deleted] Pin
srisant12-Nov-08 1:29
srisant12-Nov-08 1:29 
GeneralRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Ashfield12-Nov-08 2:05
Ashfield12-Nov-08 2:05 
GeneralRe: Audio File Bookmarking and Highlighting with Text Links - CROSS POST Pin
Jon_Boy12-Nov-08 1:52
Jon_Boy12-Nov-08 1:52 
QuestionRegular Expression in VB 6.0 Pin
indian14311-Nov-08 23:18
indian14311-Nov-08 23:18 
AnswerRe: Regular Expression in VB 6.0 Pin
Simon P Stevens11-Nov-08 23:51
Simon P Stevens11-Nov-08 23:51 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 0:05
indian14312-Nov-08 0:05 
Hi,
Can u please help me in resolving it, I have a some 100 strings of numerical values. some will like "900.09" and some will be like "90009".
Then I should take values like "90009" as numerics and return "True" and if any char other than that and like this "900.09" as non-numeric return 'False".

I have written code as below, but they are saying that it is performance issue. Can u help me in writing it by using Regular expressions.

sTemp = TestString
    iLen = Len(sTemp)
    If iLen > 0 Then
        For iCtr = 1 To iLen
            sChar = Mid(sTemp, iCtr, 1)
            If Not sChar Like "[0-9]" Then Exit Function
        Next
    'If IsNumeric(sTemp) = True Then
        'If Not sTemp Like "[0-9]" Then MsgBox "Hi"
    'End If
    
    IsNumericOnly = True
    End If



Thanks a Lot,
Aleem Mohammad.

Thanks & Regards,

Md. Abdul Aleem
NIIT technologies

GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 0:18
Simon P Stevens12-Nov-08 0:18 
AnswerRe: Regular Expression in VB 6.0 Pin
Rajesh Anuhya12-Nov-08 0:21
professionalRajesh Anuhya12-Nov-08 0:21 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 0:44
indian14312-Nov-08 0:44 
GeneralRe: Regular Expression in VB 6.0 Pin
Rajesh Anuhya12-Nov-08 0:54
professionalRajesh Anuhya12-Nov-08 0:54 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 1:03
indian14312-Nov-08 1:03 
GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 1:15
Simon P Stevens12-Nov-08 1:15 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 1:33
indian14312-Nov-08 1:33 
GeneralRe: Regular Expression in VB 6.0 Pin
Simon P Stevens12-Nov-08 2:54
Simon P Stevens12-Nov-08 2:54 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 3:22
Jon_Boy12-Nov-08 3:22 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 3:42
professionalPaul Conrad12-Nov-08 3:42 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 4:02
indian14312-Nov-08 4:02 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 4:07
professionalPaul Conrad12-Nov-08 4:07 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 6:09
Jon_Boy12-Nov-08 6:09 
GeneralRe: Regular Expression in VB 6.0 Pin
Paul Conrad12-Nov-08 6:38
professionalPaul Conrad12-Nov-08 6:38 
GeneralRe: Regular Expression in VB 6.0 Pin
Jon_Boy12-Nov-08 4:09
Jon_Boy12-Nov-08 4:09 
GeneralRe: Regular Expression in VB 6.0 Pin
indian14312-Nov-08 3:37
indian14312-Nov-08 3:37 
QuestionSQL query problem Pin
sunil goyalG11-Nov-08 22:53
sunil goyalG11-Nov-08 22:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.