Information générale
Catégorie:
Applications Internet
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement