Graphics

 View Only
  • 1.  Script Event, not member of a string?

    Posted 06-05-2013 18:22
    Attempting to run this script event:

    if Len(Text) > 0 then

    Text.visible = True

    else

    Text.visible = False

    end if

    But I can't compile because of a message telling me that " 'visible' is not a member of 'string' "

    Any suggestions?


  • 2.  RE: Script Event, not member of a string?

    Posted 06-05-2013 18:27
    Text is the value of your text object...

    Try self.visible = true/false

    #XPression


  • 3.  RE: Script Event, not member of a string?

    Posted 06-05-2013 18:31
    I added " self.visible = true/false " prior to "if Len(Text) > 0 then " but I am still receiving the same message

    #XPression


  • 4.  RE: Script Event, not member of a string?

    Posted 06-05-2013 18:36
    All your code has to be correct to be valid...

    #XPression


  • 5.  RE: Script Event, not member of a string?

    Posted 06-05-2013 18:43
    When I throw it all together, it looks like this:

    dim Text as xpTextObject

    self.visible = true/false

    if Len(Text) > 0 then

    Text.visible = True

    else

    Text.visible = False

    end if

    text="@"+Text+" "

    Now the only message I am getting when trying to compile is from the 1st line - "Text is already declared as a parameter of this method"

    #XPression


  • 6.  RE: Script Event, not member of a string?

    Posted 06-05-2013 18:44
    Thank you for your help Vincent

    #XPression


  • 7.  RE: Script Event, not member of a string?

    Posted 06-05-2013 19:27
    I still cannot compile the script event, any other suggestions?

    #XPression


  • 8.  RE: Script Event, not member of a string?

    Posted 06-05-2013 19:45
    If Len(Text) > 0 then

    Self.visible=true

    Text = "@" & Text & " "

    Else

    Self.visible =false

    End if



    #XPression


  • 9.  RE: Script Event, not member of a string?

    Posted 06-06-2013 15:35
    Thank you Vincent, that worked. I appreciate it !!! :)

    #XPression