INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Browsers & ListBoxes

Back to Blank a DropList Selection by Gaudalier
Posted: 29 Jul 02


PRELIMINAR:

As Ya already know, the FileDrop is filled from a Queue, wich is based on an View.

So if ya don't have the "Default first entry if USE variable empty" checked, the first time the window is open, the list is BLANK selected, ok???

but when the user clicks and select any item on the list, there are no posibilities to back to BLANK selected, this is 'cos when open, the file record is clear, and it's pointer to record number 0 (Then The record Buffer is Empty).

SOLUTION:

Well, if ya wanna to get back and blank the fist Entry: You must do something like this:

GET(YOURDropListTable,0)
CLEAR(YourVariableTargetField)
FLUSH(FDBX::View:FileDrop)
FREE(Queue:FileDrop)
CLEAR(YourDropListVariable)
?YourDropListVariable{PROP:SELECTED} = 0
ThisWindow.Reset(TRUE)


Something more lucid:


MainTABLE:           ProdTable,PRE(PRO)
MustBeInListTABLE:   TypeTable,PRE(TYP)

DropList:
  Use(TYP:TypeName)
  FROM(Queue:FileDrop)
  TARGET(PRO:Type)
  View(FDB1::View:FileDrop)

Clearing the Selection:

GET(TypeTable,0)
CLEAR(PRO:Type)
FLUSH(FDB1::View:FileDrop)
FREE(Queue:FileDrop)
CLEAR(TYP:TypeName)
?TYP:TypeName{PROP:SELECTED} = 0
ThisWindow.Reset(TRUE)


That simple!...

Bye.

Back to SoftVelocity: Clarion solutions FAQ Index
Back to SoftVelocity: Clarion solutions Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close