Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 10 MAR 2008 03:02:43PM Cully A Cobb wrote:

I don't understand what's wrong with my code. I have a column that I am trying to make skipped via colstyle and send_message, however when it comes time to "unskip" it, it won't become "unskipped". I am using Sprezzatura's code as an reference example here: http://www.revelation.com/__85256DC1002A4A9E.nsf/0/AE5E6186BF52B96D85257202002A2417?OpenDocument

w =caller1,'.'

RowContents=Get_Property(w:'.OD_BADGE_ID','ROWDATA')

EditTable =w:".OD_BADGE_ID"

If RowContents=VARIABLE' Then

      ColStyle=Send_Message(EditTable, "COLSTYLE", 6)
ColStyle=4100
ColStyle=Send_Message(EditTable, "COLSTYLE", 6, ColStyle)
RowContents='
Set_Property(w:'.OD_BADGE_ID','ROWDATA',RowContents)

End Else

ColStyle =Send_Message(EditTable, "COLSTYLE", 6)
ColStyle -= 4100
Colstyle =bitOr(Colstyle, 4100)
ColStyle =Send_Message(EditTable, "COLSTYLE", 6, ColStyle)

End

Help!

Thanks,

Steve


At 12 MAR 2008 07:42PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Steve,

The code you're using as your basis for your own does not map exactly onto your requirements. That code removes one style bit and adds another in one operation. You just need to alter a single style bit.

e.g

pre.code {

 background-color: #E5E5E5;
 border: 1px solid #000000;
 width: 800px;
 padding: 5px;
 font-family: courier, verdana, arial, serif;
 margin: 0px 10px auto;

}


   equ DTCS_SKIPPED$ to 0x00001000

   ColStyle=Send_Message( EditTable, "COLSTYLE", 6 )
   If BitAnd( ColStyle, DTCS_SKIPPED$ ) Then
      // The Skipped style is set - remove it
      ColStyle -= DTCS_SKIPPED$
      Call Send_Message( EditTable, "COLSTYLE", 6, ColStyle )
   End

The Sprezzatura Group

World leaders in all things RevSoft


At 23 JUN 2008 12:08PM Ana Melisa Heras wrote:

Cully:

I have just found that there is an error in the OI Reference help for the COLSTYLE message and you must use 4096 instead 4100.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/3f8c74cd67b70d048525740800689e73.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1