Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PB7 -> Check Box Third State
I am trying to work with making a check box a halfchecked check.  By
doing this I need to use the ThirdState Property.  The way I have it
set up is 0=off, 1=on, and 2=halfchecked.  It works currently by going

0->2->1->0->2->1...order but I want it to go from 0->1, 1->2, and 2->1
only never 0->2 and 2->0.  Any ideas or suggestions on where to look?

I have tried to hard code it the way I want by doing the below chunk in
the itemchanged event of the dw:
lv_s_column_name = dwo.name
lv_s_original = this.getitemstring(row, lv_s_column_name)
//Change the data to be the correct value.  The way PB did it was
0->2->1->0->1->2....  We
//need it to go from 0->1, 1->2, 2->1 only.
//0=blank; 1=yes; 2=previously checked
IF lv_s_original = "0" then
data = "1"
elseif lv_s_original = "1" then
data = "2"
elseif lv_s_original = "2" then
data = "1"
end if
this.setitem(row, "pub_ind", data)


Report this thread to moderator Post Follow-up to this message
Old Post
anewhart21
04-14-05 08:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PowerBuilder archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:07 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.