Other shared methods
20 shared methods.
- aaa_Test_Fnd
- Alert2
- BugAlert
- CenterWindow
- ChoiceList
- Confirm2
- Message2
- Message2Close
- OutputSort
- PrefsGet
- PrefsPut
- ProgClose
- ProgOpen
- ProgReset
- ProgUpdate
- Request2
- SelfStart
- SetMenuBar
- UTIL_CodeAvailable
- YesNoCancel
aaa_Test_Fnd
aaa_Test_Fnd
A scratch method kept for trying things out from a host. The body is deliberately commented out, so calling it does nothing.
It is Shared, so a host can reach it, and it has a typing entry in Compiler_Fnd_MethodParameters for the object parameter its commented #DECLARE takes. Uncomment, experiment, and comment out again — do not build anything on it.
No parameters.
Alert2
Alert2 (message{; icon{; OK bttn{; window title}})
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
message | Text | in | The message to display |
icon | Longint | in | The icon - 0, 1 or 2 (optional) |
bttn1 | Text | in | The OK button text (optional) |
windowTitle | Text | in | The window title (optional) |
BugAlert
BugAlert (routine name{; details})
Allows an older Foundation based database to use the new Fnd_Gen_BugAlert routine.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
methodName | Text | in | The calling method name |
optionalDetails | Text | in | More information about the problem (optional) |
CenterWindow
CenterWindow (width; height{; type{; title{; close method}}})
Allows an older Foundation based database to use the new Fnd_Gen_CenterWindow routine.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
width | Longint | in | Description |
Result | Longint | out | Description |
ChoiceList
ChoiceList (dialog title; ->text array) --> Number
Reroutes ChoiceList calls to the new Fnd_List component.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inDialogTitle | Text | in | The dialog title |
array | Pointer | in | The options to display |
Result | Longint | out | The selected element |
Confirm2
Confirm2 (message{; icon{; OK bttn; Cancel bttn{; window title}}})
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
message | Text | in | The message to display |
inIcon | Longint | in | The icon - 0, 1 or 2 (optional) |
inBttn1 | Text | in | The OK button text (optional) |
inBttn2 | Text | in | The Cancel button text (optional) |
inWindowTitle | Text | in | The window title (optional) |
Message2
Message2 (message text{; window title})
Allows an older Foundation based database to use the new Fnd_Dlg routines.
| Parameter | Type | Direction | Description |
|---|---|---|---|
messageText | Text | in | The message to display |
inWindowTitle | Text | in | The window title (optional) |
Message2Close
Message2Close
Allows an older Foundation based database to use the new Fnd_Dlg routines.
No parameters.
OutputSort
OutputSort (column; ->field)
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
column | Longint | in | The column number |
fieldSort | Pointer | in | The field to sort |
PrefsGet
PrefsGet (pref name) --> Text
Allows an older Foundation based database to use the new Fnd_Pref routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
prefName | Text | in | The preference name |
Result | Text | out | The preference value |
PrefsPut
PrefsPut (pref name; pref value)
Allows an older Foundation based database to use the new Fnd_Pref routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
prefName | Text | in | The preference name |
prefValue | Text | in | The value to set |
Result | out | None |
ProgClose
ProgClose
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
No parameters.
ProgOpen
ProgOpen (total; message; {window title{; button text}})
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
total | Longint | in | The total to count up to |
message | Text | in | The message to display |
inWindowTitle | Text | in | The window title (optional) |
inButtonText | Text | in | The button label (optional) |
ProgReset
ProgReset
Part of the Foundation Compatibility component.
No parameters.
ProgUpdate
ProgUpdate (number)
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
number | Longint | in | The current progress |
Request2
Request2 (message{; default{; icon{; OK bttn; Cancel bttn{; title}}}}) --> Text
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
message | Text | in | The message to display |
inDefault | Text | in | The default response |
inIcon | Longint | in | The icon - 0, 1 or 2 (optional) |
inBttn1 | Text | in | The OK button text (optional) |
inBttn2 | Text | in | The Cancel button text (optional) |
inTitle | Text | in | The window title (optional) |
Result | Text | out | The user's response |
SelfStart
SelfStart (method name; process name)
Converts a call to Foundation 3's SelfStart routine to the new Fnd_Gen_LaunchAsNewProcess routine.
| Parameter | Type | Direction | Description |
|---|---|---|---|
methodName | Text | in | The name of the calling method |
processName | Text | in | The process name |
Result | Boolean | out | True if we're in a new process |
SetMenuBar
SetMenuBar
Doesn't do anything other than not cause errors.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
ignoredParameter | Longint | in | An ignored parameter |
UTIL_CodeAvailable
UTIL_CodeAvailable (code) --> Boolean
Returns true if the component is installed.
| Parameter | Type | Direction | Description |
|---|---|---|---|
code | Text | in | The name of a component or method |
Result | Boolean | out | True if the component or method is available |
YesNoCancel
YesNoCancel (message{; window title}) --> Text
Allows an older Foundation based database to use the new Fnd_Dlg routines.
Part of the Foundation Compatibility component.
| Parameter | Type | Direction | Description |
|---|---|---|---|
message | Text | in | The message to display |
$5 | Text | in | The window title (optional) |