Check Null Text in Tables

kinzuakinzua Member Posts: 554
edited May 2012 in Working with GS (Mac)
Can somebody tell me how to check, if a table cell, text value is blank/null?

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    edited May 2012 Accepted Answer
    I can't figure out the why??? for this one … but

    add attribute: text type … cellText
    add attribute: index type … cell#
    (and you should label tables columns: text or #)

    changeAttribute: self.cellText To: tableCellValue(table.row,"text")
    changeAttribute: self.cell# To: tableCellValue(table.row,"#")

    Rule: when
    Attribute: self.cellText is (leave blank)
    -- do this
    Otherwise:
    -- do that

    Rule: when
    Attribute: self.cell# is 0
    -- do this
    Otherwise:
    -- do that

    if that is not what you want to do … please give us some more information

    image MH

Answers

  • kinzuakinzua Member Posts: 554
    @MotherHoose hey.. i really like your quote from Benjamin Franklin :-bd

    this is kind of what i was looking for.. to be precise..
    i want to know..
    that to check null text cell.. shud v say ..

    if celltextvalue =0
    then do --

    or shud v say

    if celltextvalue = 'leave it blank'
    then do--
  • kinzuakinzua Member Posts: 554
    @MotherHoose ..

    ok i got it.. i shud leave it blank.. right?
  • MotherHooseMotherHoose Member Posts: 2,456
    null/blank would have no content … so do not type anything in that box

    hopefully that works!

    image MH
Sign In or Register to comment.