Help - Search - Members - Calendar
Full Version: how to display form?
AC Tools Everything Macro > AC Tool > AC Tool Discussion
AbvCyr
Does any1 know how can i display a form?

ive made this form:
CODE
Form Test, This is my test
  ed1=EditBox:Edit 1:Test
  ed2=CheckBox:Check 1:True
  ed3=Combobox:Combo 1:Item 1, Item 2, Item 3, Item 4
end


what do i need to do to display it?



Bear
Well... Here's something I created to prompt user for an ID and Password. It's made to be an Include. With the Constant PassBug=1 it can run as a Stand-alone, make it zero to use it as a include.

CODE
(* Filename: Password.inc

Here's a Form that Prompts the User to Enter a Logon UserID and a Password.

Entered Data are stored in the Constants: UserID and Password. tongue.gif

Version 1 - 9/21/05

*)
Constants
Password=NUL
UserID=NUL
//
PassBug=1 // Debug Value
End

Form GetWhat, Choose Which to Prompt user to Enter.
ed1=CheckBox:Enter a UserID?:True
ed2=CheckBox:Enter a Password?:True
End

Form GetID, Enter your Login ID
TmpID=EditBox:What's your Login UserID?:.
End

Form GetPW, Enter your Password
TmpPW=EditBox:What's your Password?:.
End

Procedure GetPW
IF SHOWFORM GetWhat
TimeStamp What was the Check Box for userID? ( GetWhat[ed1] )
TimeStamp What was the Check Box for Password? ( GetWhat[ed2] )
IF GetWhat[ed1] = True
IF SHOWFORM GetID
SetConst UserID,GetID[TmpID]
End
End
IF GetWhat[ed2] = True
IF SHOWFORM GetPW
SetConst Password,GetPW[TmpPW]
End
End
End
End

If $PassBug = 1
Call GetPW
Timestamp User ( $UserID ), Pass ( $Password )
End
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.