Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Drop-Down Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00642696
Message ID:
00644899
Vues:
17
James,

If I understand correctly, you are looking for a way to differentiate between the multitude of drop-down boxes you've created. You could try something like this:
FUNCTION Lastfunc
lcDropBox= [<p><select size="1" name="dbxSection_<%=alltrim(ssn)%>">]+;
[<option>A</option>]+;
[<option>B</option>]+;
[<option>C</option>]+;
[<option>SS</option>]+;
[</select></p>]

SELECT ssn, lastname, Firstname, mergetext(lcDropBox) as Section;
  FROM officers WHERE orgno=1421 INTO table temp
  SELECT temp

response.showcursor()

ENDFUNC
>
This will give you unique names for each drop-down based on the SSN. You can then get a list of the form variables submitted and scan them for names starting with dbxSection_. Grab the value and read off the SSN and you're away!

Cheers,

Andrew

>I am trying to figure out how to retrieve data from a showcursor where I am creating drop-down boxes in the showcursor(). IOW how do I update my table officers from the Drop-down selections made in the showcursor()?
>
>
>FUNCTION Lastfunc
>lcDropBox= [<p><select size="1" name="dbxSection">]+;
>[<option>A</option>]+;
>[<option>B</option>]+;
>[<option>C</option>]+;
>[<option>SS</option>]+;
>[</select></p>]
>
>SELECT ssn, lastname, Firstname, lcDropBox as Section;
>FROM officers WHERE orgno=1421 INTO table temp
>SELECT temp
>response.showcursor()
>
>ENDFUNC
>


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform