OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Thread Tools Search this Thread Display Modes
Old 20-02-2011, 09:26
Posts: n/a
Default Condition of entry number(s) in the code?

Whether it is possible to write the condition:
If No is not a number (positive or negative) Then Exit Sub.
Reply With Quote
Old 20-02-2011, 09:35
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811

Like this:

Sub testIt()
    Dim n
    n = 5
    'n = "Something else"
    If Not IsNumeric(n) Then Exit Sub
    MsgBox "N is a number!"
End Sub
Reply With Quote
Old 20-02-2011, 09:46
Posts: n/a

Thx for fast reply.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
number spot colors robert CorelDRAW/Corel DESIGNER VBA 2 10-11-2008 03:05
Number of weeks Geir Calendar Wizard 1 09-11-2006 23:10
HELP Serial Number Denise Calendar Wizard 0 20-08-2005 15:26
"Unexpected condition" error message (with code) s_federici CorelDRAW/Corel DESIGNER VBA 10 10-07-2003 22:46
Condition #1002 -Listman- 0737 (Wierd memory leaks issues) wbochar CorelDRAW/Corel DESIGNER VBA 6 15-05-2003 17:48

All times are GMT -5. The time now is 00:40.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com