| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Is there an intrinsic function in D3 to convert a list to an array? Thanks in advance for this group's always helpful repsonse/s! danny |
|
#2
|
| You could SELECT TO , or OPEN 'POINTER-FILE' TO POINTER.FILE ELSE STOP 201, 'POINTER-FILE' READ MY.ARRAY FROM POINTER.FILE,LIST.NAME ELSE MY.ARRAY = "" |
|
#3
|
| See MatParse and MatBuild in D3Ref. drdanny >Is there an intrinsic function in D3 to convert a list to an array? > >Thanks in advance for this group's always helpful repsonse/s! > >danny |
|
#4
|
| Hi 001 EXECUTE "SSELECT TEST" 002 SELECT TO MAINLIST 003 CNT = DCOUNT(MAINLIST,@AM) 004 DIM NEWLIST(CNT) 005 MATPARSE NEWLIST FROM MAINLIST 006 FOR A = 1 TO CNT 007 CRT NEWLIST(A) 008 NEXT A Peter McMurray "drdanny" news:15a31e7b-e7f6-42d4-84b5-994c18846d00-at-i24g2000prf.googlegroups.com... > Is there an intrinsic function in D3 to convert a list to an array? > > Thanks in advance for this group's always helpful repsonse/s! > > danny |
|
#5
|
| How about dyn.name = dim.name For example: DIM PARMS(100) FLAT=PARMS Or did you specifically want a function? Malcolm Bull |
|
#6
|
| Danny, do you mean a dynamic array, or a dimensioned array? Peter, can D3 use a variable in the DIM statement? |
|
#7
|
| "Douglas Tatelman" news:f0a989cb-2e5d-45d7-8eb7-a9ec3250840f-at-i20g2000prf.googlegroups.com... > Danny, do you mean a dynamic array, or a dimensioned array? > > Peter, can D3 use a variable in the DIM statement? YUP! and it can redim on the fly. As with any powerful statement, redimensioning should be approached with great caution. Back in the DOS days a twerp got hold of the DOS to Pick routine which was originally one of the best written and commented programs that one could wish for. Unfortunately said twerp decided to redimension an array by +1 for every new DOS record that he read by the end of 1000 iterations what had been an excellent fast program had just about ground the machine to a halt. Peter McMurray |
|
#8
|
| Hi I know that that is now a possibility but I find the MATPARSE and MATBUILD a much clearer usage as there is a significant difference between the types of variable that needs to be seen. Peter McMurray news:872d92b6-b3ac-48c8-b4ce-ed8951090791-at-79g2000hsk.googlegroups.com... > How about > > dyn.name = dim.name > > For example: > > DIM PARMS(100) > > FLAT=PARMS > > Or did you specifically want a function? > > Malcolm Bull > |
![]() |
| Thread Tools | |
| Display Modes | |