
Interface Injectable::getInjectString
Description
In BBj 14.0 and higher, this method returns the string value set with either the INJECT Mnemonic or the setInjectString method.
Syntax
Return Value |
Method |
string |
getInjectString() |
Parameters
None.
Return Value
Returns the string value set with either the INJECT Mnemonic or the setInjectString method.
Remarks
None.
Example
Copy
Interface Injectable Example
rem ' Interface Injectable (setInjectString, getInjectString)
declare BBjSysGui sysgui!
declare BBjWindow window!
declare Injectable button!
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,75,"Injectable",$00090003$,$$)
button! = window!.addButton(101,50,25,100,25,"Button",$$)
inject$ = "xyzzy"
print "button!.setInjectString: ",inject$
button!.setInjectString(inject$)
print "button!.getInjectString: ",
print button!.getInjectString()
print "Each time you click the button, the injected text will"
print "appear in the console typeahead buffer."
print "To quit, click the close box in this console window."
while 1
input text$
print text$
wend
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.