Error checking return value

Discussion in 'AutoCAD' started by Lunt, Jul 15, 2004.

  1. Lunt

    Lunt Guest

    Here is my code:

    ThisDrawing.Utility.InitializeUserInput 128, UserKeyWord
    DistText = ThisDrawing.Utility.GetReal("Please enter the distance between stations or (Select): ")

    If I try to enter, lets say, an "A" or 123w, DistText remains empty, what should I be asking if the user enters something other that numeric text?

    thank you
     
    Lunt, Jul 15, 2004
    #1
  2. Lunt

    Joe Sutphin Guest

    Change the value supplied to InitializeUserInput to not allow arbitary
    entry.

    Joe
    --

    should I be asking if the user enters something other that numeric text?
     
    Joe Sutphin, Jul 15, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.