bb
|
Posted: 04/02/2004, 12:46 PM |
|
How do you reference the value of EditMode in a BeforeBuildSelect event for a listbox on a form?
|
|
|
sebastian
Posts: 15
|
Posted: 04/02/2004, 2:18 PM |
|
You just use:
$formname->EditMode
Sebastian
|
|
|
bb
|
Posted: 04/02/2004, 4:57 PM |
|
I tried that and it didn't seem to work. Not sure what the problem is.
|
|
|
peterr
Posts: 5971
|
Posted: 04/03/2004, 12:39 AM |
|
EditMode is the property of a form and possibly cannot be referenced in a listbox event.
Per http://docs.codecharge.com/studio/html/Components/RTPro...P/EditMode.html it applies to: Record Form, EditableGrid Form.
Possibly a workaround could be to use CCGetParam to check if the URL contains non-empty key, which could indicate that the record is being edited.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
bb
|
Posted: 04/03/2004, 8:39 AM |
|
Using a URL parameter got the job done. It would be nice if EditMode was available.
|
|
|