OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20-02-2011, 08:26
ajesion
Guest
 
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
  #2  
Old 20-02-2011, 08:35
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Like this:

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

Thx for fast reply.
Reply With Quote
Reply


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 02:05
Number of weeks Geir Calendar Wizard 1 09-11-2006 22:10
HELP Serial Number Denise Calendar Wizard 0 20-08-2005 14:26
"Unexpected condition" error message (with code) s_federici CorelDRAW/Corel DESIGNER VBA 10 10-07-2003 21:46
Condition #1002 -Listman- 0737 (Wierd memory leaks issues) wbochar CorelDRAW/Corel DESIGNER VBA 6 15-05-2003 16:48


All times are GMT -5. The time now is 17:43.


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