Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP Enable/Disable Command Buttons
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00383372
Message ID:
00383878
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform