You would have to type Men(x)\Pants$ = Rset$(V$,12)
where x is the array "slot" you want to set. Also note the backslash not forward slash.
You could use Rset if you want to make the strings all the same length but why? What I meant was, say a user was typing in a string, you could limit it then to a set number of chars, or if reading it from a file you could use Mid$(V$,1,12) to truncate it to 12 chars in the event that it might be longer.
btw with my "array of men" type I would normally have other fields in the type such as Count. Then I can pass that type tospecial functions used to clear it, fill it and manipulate it. Not sure you can pass array's into functions as they are global anyway. Maybe someone will correct me on this.
where x is the array "slot" you want to set. Also note the backslash not forward slash.
You could use Rset if you want to make the strings all the same length but why? What I meant was, say a user was typing in a string, you could limit it then to a set number of chars, or if reading it from a file you could use Mid$(V$,1,12) to truncate it to 12 chars in the event that it might be longer.
btw with my "array of men" type I would normally have other fields in the type such as Count. Then I can pass that type tospecial functions used to clear it, fill it and manipulate it. Not sure you can pass array's into functions as they are global anyway. Maybe someone will correct me on this.