Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read values of image buttons
Message
 
À
26/12/2004 13:23:53
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00972203
Message ID:
00972226
Vues:
11
I think you need to test each one and see if it's empty or not (see previous code supplied). Have you tried that?
>Hi Claude
>
>I have this code on a form that has image buttons:
>
><form method="POST" action="/bbPortal/default.asp?action=buttonclicked">
>  		
><div style="position: absolute; top: 108; left: 10; width: 237; height: 168">
><span style="position: absolute; left: 170; top: 114">
>
><input type="image" name="ButtonUp" border="0" src="../../images/up.gif"
>width="14" height="14" 	alt="Move Up In List"></span>
>	
><span style="position: absolute; left: 170; top: 135">
>
><input type="image" name="ButtonDn"  border="0" src="../../images/dn.gif"
>width="14" height="14" alt="Move Down In List"></span>
>
></div>
>
></form>
>
>
>From main.prg I have code as:
>
>CASE oProp.Action == 'buttonclicked'
>    * code here to check which button was clicked
>
>
>What I cannot figure out is how to get the button that was clicked.
>
>I tried this code:
>
>FOR EACH lcFormVar IN oRequest.oRequest.FORM
>    cButton = oRequest.Form(lcFormVar)
>ENDFOR
>
>but cButton returns a number that is different every time so I cannot find out which button was clicked.
>
>What I need is some code so that cButton = "ButtonUp" or "ButtonDn"
>
>Can you help?
>
>Thanks and Happy New Year
>
>Bernard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform