Jump to content
Developer Wiki and Function Reference Links ×

Oddities with symbol definitions


Petri

Recommended Posts

Why does this work in some files but not in some others?

PROCEDURE SetDefaults; { ? Petri Sakkinen 2006 } 

VAR 
insertMode, breakMode : INTEGER;
cName, sName: STRING;
sdHd : HANDLE;

PROCEDURE SetGraphicsByClass;
BEGIN
{ add code } 
END;

BEGIN
insertMode := 1;  { edge } 
breakMode := 4;   { no break }
cName := 'WHAT-Ever';
NAMECLASS(cName);
sdHd := FSYMDEF; 
WHILE sdHd <> NIL DO BEGIN 
	sName := GETSDNAME(sdHd); 
	SETSYMBOLOPTIONSN(sName, insertMode, breakMode, cName); 
	sdHd := NEXTSYMDEF(sdHd);
END;
END;

RUN(SetDefaults);

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...