Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to allow users to rename the item in the list box.
Message
 
 
À
13/11/2002 13:28:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00721778
Message ID:
00722277
Vues:
11
It's not that simple, that's why I suggested to use grid instead.

What do you use for the recordsource of your ListBox? You have to update the recordsource for the choosen record. It's not hard, but requires some code. If you want to make it generic, you have to code for each particular possible RecordSourceType.

>David
>
>Thanks for replying i tried in the rightclick event of the listbox
>rname=INPUTBOX('Enter the name for the file','Rename')
>if empty(rname)
> messagebox('You have to enter correct name for the file')
> return 0
>endif
>this.Value=rname
>this.Refresh
>
>
>but the item doesn't get refreshed.what am i missing.
>
>txs
>>Khan,
>>
>>You could add the functionality to the rightclick, pop open your own little form with a textbox on it to edit the value, or use InputBox() to get the value.
>>
>>>I would like to allow the users to rename the item in the list box,any idea how to get it done.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform