Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to read values of image buttons
Message
De
26/12/2004 13:23:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Titre:
How to read values of image buttons
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00972203
Message ID:
00972203
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform