User:Kate Racaza/test page: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
(Replaced content with '=DRAFT=')
 
(88 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Template:APIBreadcrumb|9|Repository}}
=DRAFT=
{{Template:API}}</noinclude>
Connects to a Synthesis repository  (*.rsr9, *rsr10* or *.rserp) that you specify. If the file extension is not specified, it assumes that the file type is a standard database. Returns a '''Boolean''' value; when true, indicates a successful connection to that repository.
<noinclude>
== Syntax ==
''object''.'''ConnectToRepository(FileName As String)''' As Boolean
 
where ''object'' is a variable that represents a Repository object.
 
======================
Connects to a SQL repository that you specify. Returns a '''Boolean''' value; when true, indicates a successful connection to the repository.
 
== Syntax ==
''object''.'''ConnectToSQLRepository(''ServerName'', ''DatabaseName'', ''UseImpersonation'', ''ImpersonateDomain'', ''ImpersonateUsername'', ''ImpersonatePassword'')'''
 
where ''object'' is a variable that represents a Repository object.
 
===Properties===
{| {{APITable}}
|-
|FileName||'''String'''. The complete path to the Synthesis Repository you will connect to.
|-
|FileName||'''String'''. The complete path to the Synthesis Repository you will connect to.
|}
 
===Methods===
{|{{APITable}}
|-
|FileName||'''String'''. The complete path to the Synthesis Repository you will connect to. Example: ''C:\Users\USERNAME\Documents\ReliaSoft\Files\RSRepository1.rsr10''.
|}
 
=== Parameters ===
{| {{APITable}}
|-
|ServerName{{APIParam|Required}}||'''String'''. The complete path to the Synthesis Repository you will connect to.
|}
 
 
==Example==
This example assumes that a file called "RSRepository1.rsr10" exists in the C: drive.
 
'''VBA|VB.NET'''<br>
Dim MyRepository As New Repository
MyRepository.ConnectToRepository("C:\RSRepository1.rsr10")
 
 
<br/>
<br/>
<br/>
 
<br/>
<br/>
<br/>
 
====================
===<span style="font-family:Verdana;font-size:18px;font-weight:bold;color:#2E64FE">Methods</span>===
{|border="1" align="left" cellpadding="5" cellspacing="0" style="border-collapse: collapse; text-align: left; width:100; cellborder"
|- style="background:#D8D8D8;"
! style="width: 15%;"|Name
! Description
|-
|ConnectToRepository
|'''Boolean'''. Connects to a Synthesis repository  (*.rsr9, *rsr10* or *.rserp) that you specify. When true, indicates a successful connection to that repository.
|-
|ConnectToAccessRepository
|'''Boolean'''. Connects to a standard Repository (*.rsr9, *rsr10*) that you specify. When true, indicates a successful connection to that repository. This method cannot be used to connect to an enterprise repository (*.rserp).
|-
|ConnectToSQLRepository
|'''Boolean'''. Connects to a SQL repository that you specify. When true, indicates a successful connection to that repository.
|}
 
<br/>
<br/>
<br/>
 
 
 
 
 
 
{{Font|Added in Synthesis API Version 9<nowiki> | </nowiki>Member of |8|Calibri|Bold|#6E6E6E}}{{Font|[[Full_Synthesis_API|SynthesisAPI]].[[Repository_Class|Repository]]|8|Courier New|Normal|#6E6E6E}}
 
 
{{Font|Added in Synthesis API Version 9|8|Arial|Bold|#6E6E6E}}<br/>
{{Font|Member of |8|Arial|Bold|#6E6E6E}}[[Full_Synthesis_API|<span style="font-family:'Courier New', Courier, monospace;font-size:8;font-weight:bold;">SynthesisAPI</span>]].[[Repository_Class|<span style="font-family:'Courier New', Courier, monospace;font-size:8;font-weight:bold;">Repository</span>]]
 
 
 
{{Font|Added in:|7|Arial|Bold|#6E6E6E}}{{Font|Synthesis API Version 9|8|Arial|Bold|#6E6E6E}}<br/>
{{Font|Member of: |7|Arial|Bold|#6E6E6E}}[[Full_Synthesis_API|<span style="font-family:monospace;font-size:8;font-weight:bold;">SynthesisAPI</span>]].[[Repository_Class|<span style="font-family:monospace;font-size:8;font-weight:bold;">Repository</span>]]
 
 
 
{{Font|Added:|7|Arial|Bold|#6E6E6E}}{{Font|Synthesis API Version 9|8|Arial|Bold|#6E6E6E}}<nowiki>|</nowiki>{{Font|Member of: |7|Arial|Bold|#6E6E6E}}[[Full_Synthesis_API|<span style="font-family:monospace;font-size:8;font-weight:bold;">SynthesisAPI</span>]].[[Repository_Class|<span style="font-family:monospace;font-size:8;font-weight:bold;">Repository</span>]]
 
==TEST PAGE==
 
 
 
 
<pre>
Private Function EscapeCharacter(char As String)
    ReplaceString char, "<nowiki><nowiki></nowiki>" & char & "<nowiki></nowiki></nowiki>"
End Function
</pre>
 
 
'''VBA'''<br/>
'Connect to a repository
Dim Success As Boolean = False
Success = MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr10")
 
 
<div style="width: 98%; border:1px solid #819FF7; padding: 0px 10px 10px 10px;text-align: left; border-radius:10px">
{{Font|VBA|8|Calibri|Bold|#424242}}
 
{{APIComment|'Connect to a Synthesis repository.}}<br/>
Dim Success {{APIPrefix|As}} Boolean<br/>
Success = MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr10")
 
</div>
 
 
<blockquote style="color: lightgrey; border: solid thin gray; border-radius:10px; padding: 10px; text-align: left;">
{{Font|VBA|8|Calibri|Bold|#6E6E6E}}
 
asdfsdfssdf
sdafasfsdaf
asdfdsa  asdfadsfdsa
</blockquote>
 
 
{|
| width="48" height="15" | column 1
| width="48" | column 2
| width="48" | column 3
 
|- style="font-size:11pt"  valign="bottom"
| align="right" height="15" | 1
| align="right" | 4
| align="right" | 7
 
|- style="font-size:11pt"  valign="bottom"
| align="right" height="15" | 2
| align="right" | 5
| align="right" | 8
 
|- style="font-size:11pt"  valign="bottom"
| align="right" height="15" | 3
| align="right" | 6
| align="right" | 9
 
|}
 
 
 
 
The first possibility<ref name="Dog" /> is the probability of a successful trial, <math>(1-p)</math>, where <math>p</math> is the probability of failure in trial <math>n-1</math>, while being in the unreliable state, <math>P_{n-1}(0)</math>, before the <math>n-1</math> trial, or:
 
::<math>(1-p)P_{n-1}(0)</math>
 
::<math>ax^2 + bx + c = 0</math>
 
 
==References==
<ref name="Dog"> This is the dog reference.</ref>
 
 
'''Examples of expressions that are always rendered as PNG images'''
 
<math>x={-b\pm\sqrt{b^2-4ac} \over 2a}</math>
 
<math>2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)</math>
 
 
Use <nowiki>\textstyle</nowiki> markup to make it smaller:
<math>\textstyle 2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)</math>
 
 
<hr>
Regular size formula:
:The formula <math>\sum_{n=1}^\infty 1/n^2 = \pi^2/6 </math> is used for...
 
<nowiki>\textstyle</nowiki> markup:
:The formula <math>\textstyle\sum_{n=1}^\infty 1/n^2 = \pi^2/6</math> is used for...
 
<hr>
 
Mix of HTML and TeX markup:
 
TPH = <math>\tau</math>(DTO<sub>4</sub> – DTR<sub>1</sub>)
 
 
All TeX markup:
 
<math>TPH = \tau(DTO_{4}-DTR_{1})</math>
<noinclude>

Latest revision as of 15:37, 7 September 2016

DRAFT