[Pas2js] web.pas

pas2js at gauns.org pas2js at gauns.org
Thu Jan 31 07:40:55 CET 2019


Hi guys,

i have changed the web.pas slightly

TJSNode
   property value : String Read FValue Write FValue;

for writing and

TJSKeyboardEvent
	FKeyCode: Integer; external name 'keyCode';
	property KeyCode : Integer read FKeyCode;

and one question for the TJSHTMLSelectElement
why is selectedIndex defined as "selectedIndex : NativeInt;"
and not in the normal way

   private
     FSelectedIndex: NativeInt; external name 'selectedIndex';
   public
     property selectedIndex : NativeInt Read FSelectedIndex;

but it works without this external name declaration

thanks
peter


More information about the Pas2js mailing list