Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP Enable/Disable Command Buttons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00383372
Message ID:
00383878
Vues:
13
Just wanted to let those who are interested I found the solution. The objects are referenced directly and do not have a prefix reference to the form as you would have in VFP (thisform.cmdNext.Enabled = .F.) . You just state cmdNext.Disabled = true.

‘ Declare a variable to reference the form
dim gForm


Sub Window_OnLoad()
set gForm = document.forms("frmQPR")
call Set_Up
End Sub

Sub Set_Up()
dim sRecord
dim sLastPage
sRecord = <%=iPage%>
sLastPage = <%=oProj.PageCount%>


if sRecord = 1 then
cmdPrevious.disabled = true
end if

Tom
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform