[comp.sys.mac] Writing Fkeys

neil@dsl.cis.upenn.edu (Neil Radisch) (03/09/88)

Is there anything strange about writing Fkey code that one should know about.

Using turbo pascal the following code works

	Procedure myfkey;
	begin
	moveto(100,100);
	drawstring('hello');
	sysbeep(5);
	sysbeep(5);
	end;

It gives me the 'hello' and two beeps

HOWEVER:

	Procedure myfkey;
	var
	   dstring:str255;
	begin
	dstring:='hello';
	moveto(100,100);
	drawstring('dstring');
	sysbeep(5);
	sysbeep(5);
	end;

Only gives me two beeps, infact any procedure call I try to use that
needs variables (like SFGetfile) does not respond.
What's the deal (I pretty sure I'm doing the correct 'code massaging' since
 the first example works)


|----------------------------------------------------------------------------|
| "Better to remain quiet and be thought a fool than to speak out and remove |
|  all doubt" --- Abraham Lincoln                                            |
|                                                                            |
|  neil@dsl.cis.upenn.edu.UUCP                                               |
|----------------------------------------------------------------------------|