Results 1 to 2 of 2

Thread: PromptIntegerResult to string

  1. #1
    100 Club
    Join Date
    2008-04
    Location
    St-Ferdinand, Québec
    Posts
    124

    Default PromptIntegerResult to string

    Hi Guys !

    I want to know why my string variable is empty with the code below ?
    Code:
            '' Get the value entered by the user
            Dim pIntRes As PromptIntegerResult = acDoc.Editor.GetInteger(pIntOpts)
            Dim sProjectNumber As String = pIntRes.StringResult
            Application.ShowAlertDialog(sProjectNumber)
    ...and why with the code below I got this ((OK,),11035) in the variable value ?
    Code:
            '' Get the value entered by the user
            Dim pIntRes As PromptIntegerResult = acDoc.Editor.GetInteger(pIntOpts)
            Dim sProjectNumber As String = pIntRes.ToString()
            Application.ShowAlertDialog(sProjectNumber)
    I know that I can use GetString instead of GetInteger, but with the GetInteger there are useful "allow properties"...

    Thanks in advance !

  2. #2
    100 Club
    Join Date
    2008-04
    Location
    St-Ferdinand, Québec
    Posts
    124

    Default Re: PromptIntegerResult to string

    Sorry, I looked too fast the help... I forgot a word !



    Code:
    Dim sProjectNumber As String = pIntRes.Value.ToString()

Similar Threads

  1. Trim a String
    By ccowgill in forum AutoLISP
    Replies: 1
    Last Post: 2008-03-24, 03:41 PM
  2. Dimension String
    By MARPOW in forum AutoLISP
    Replies: 17
    Last Post: 2007-09-13, 05:44 PM
  3. Help With String Manipulation
    By CADdancer in forum AutoLISP
    Replies: 3
    Last Post: 2006-12-05, 02:37 PM
  4. What's wrong with this string?
    By fletch97 in forum AutoLISP
    Replies: 2
    Last Post: 2005-09-05, 12:23 PM
  5. Bow String Trusses?
    By m_r_meza in forum Revit Architecture - General
    Replies: 2
    Last Post: 2004-12-09, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •