Jump to content
Developer Wiki and Function Reference Links ×

Set Record Field with Alphabetical Sort


sle7en7

Recommended Posts

I have another request since I can't code even to survive, and hopefully someone has already have one written somewhere but I was not able to find it.

This time, I'm looking for an alphabetical sort script which will set the record field from A to Z on a stacking order basis or some other basis ... idk.

Any ideas, or line of codes?

Link to comment

What are you actually trying to do? If you want to set a field in a record, especially if you are OK with doing it by stacking order, you don't need a sort function.

I post a script to write data into a record a few days ago. See

https://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Main=40740&Number=203171#Post203171

If you can describe what you really need, perhaps I can modify this to do what you want.

Link to comment

Hi Pat,

You know what I'm trying to do; I'm trying to assign letters to record fields inside a worksheet. So you remember this code right;

Procedure Number_Objects;

{October 1, 2014}
{? 2014, Coviana, Inc - Pat Stanford pat@coviana.com}
{Licensed under the GNU Lesser General Public License}

const	MyRec='Test';
	MyField='Seq';

Var		NextNum: Integer;


Procedure MyProc(H2:Handle);
Begin
	SetRField(H2,MyRec,MyField,Num2Str(0,NextNum));
	NextNum:=NextNum+1;
End;

Begin
NextNum:=1;
ForEachObject(MyProc,((R IN [MyRec])));
End;

Run(Number_Objects); 

I'm trying to do the exact same thing but with letters now, if I'm explaining myself clearly.

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...