I'm converting from 3.0 to 4.0 and having trouble with passwords and not understanding the help file. Can I get some simple step by step instrutions.
Thanks
Professional Software Development Tools
I'm converting from 3.0 to 4.0 and having trouble with passwords and not understanding the help file. Can I get some simple step by step instrutions.
Thanks
Here would be a real simple example:
<ol type="1">[*] Create two pages[*] On the first page add a Text Object with the following Actions OnClick:
<font color=purple>%JumpPW% = Dialog.GetInformation ("Verify Password", "Please enter your password:")
%PasswordPos% = GlobalList[JumpToPage2Passwords].Find (%JumpPW%)
IF (%PasswordPos% = -1)
%Result% = Dialog.MessageBox ("Invalid Password", "Incorrect password. You may n...", Ok, Stop)
ELSE
Page.Jump ("Page 2")
END IF</font color=purple>
[*] On the second page, add a Text Object with the following Actions OnClick:
<font color=purple>Page.Jump ("Page 1")</font color=purple>
[*] Create a Global list called:
<font color=purple>JumpToPage2Passwords</font color=purple> - and set a password in there.[/list=a]
Here are pastable Actions for Page 1 - FYC
<font color=green>
<IR_ACTIONS_LIST>
<Action name="Get Information">
<Type>136</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<DialogTitle>Verify Password</DialogTitle>
<FieldTitle>Please enter your password:</FieldTitle>
<DefaultText/>
<BrowseType>0</BrowseType>
<Mask>1</Mask>
<Variable>%JumpPW%</Variable>
</Action>
<Action name="Find">
<Type>114</Type>
<Function>0</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<TargetList>JumpToPage2Passwords</TargetList>
<ItemText>%JumpPW%</ItemText>
<StartAfterPosition>-1</StartAfterPosition>
<CaseSensitive>0</CaseSensitive>
<Variable>%PasswordPos%</Variable>
</Action>
<Action name="IF">
<Type>200</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<Condition>%PasswordPos% = -1</Condition>
</Action>
<Action name="Message Box">
<Type>5</Type>
<Function>0</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<DialogTitle>Invalid Password</DialogTitle>
<DialogMessage>Incorrect password. You may not proceed.</DialogMessage>
<Icon>4</Icon>
<Variable>%Result%</Variable>
<DialogType>0</DialogType>
<DefaultButton>0</DefaultButton>
</Action>
<Action name="ELSE">
<Type>206</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
</Action>
<Action name="Jump">
<Type>1</Type>
<Function>0</Function>
<DTIndentLevel>1</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
<PageName>Page 2</PageName>
</Action>
<Action name="END IF">
<Type>201</Type>
<Function>1</Function>
<DTIndentLevel>0</DTIndentLevel>
<Enabled>1</Enabled>
<ErrorHandling>
<UserNotificationMode>2</UserNotificationMode>
<CustomErrorMessage/>
<OnErrorAction>0</OnErrorAction>
<JumpToLabel/>
</ErrorHandling>
</Action>
</IR_ACTIONS_LIST>
</font color=green>
Hope this helps some [img]/ubbthreads/images/icons/smile.gif[/img]
-
= Derek
["All glory comes from daring to begin" - fortune cookie]