![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have declare array as below:
dim type (x, y) shape(1000, 500) first dimension is points in a polygon shape, e.g. shape(0, 1) to shape(1000,1) , that I use to draw polygon. shape(0, 2) to shape(1000,2) refers to another polygon. when draw polygon, I use the code below: for jj = 0 to cntshape - 1 for ii = 0 to cntpt(jj) - 1 ptstmp(ii).x = shape(ii, jj).x ptstmp(ii).y = shape(ii, jj).y next form1.polygon(ptstmp(), 0, cntpt(jj) - 1, cBlack, F) next I found that in PPC, the above for ii loop takes time (i.e. slow as one second when draw over 10 shapes). If I can refer to one of the dimension I should be able to avoid the for ii loop. e.g. form1.polygon(shape(,jj), 0, cntpt(jj) -1 , cBlack, F) Or any other way to do so?
__________________
Yours, ![]() Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth |
|
|||
|
Thanks
![]() I am planning to keep a series of shapes that each shape is a series of points. I can not define like dim type (x, y) pts(500) dim shape(1000) as pts So I have to two dimensions array. It would be great if the version 6.0 allows variable decaration using self defined type like pts (points).
__________________
Yours, ![]() Dopod D810 WM6 GPS HSDPA 3G Wifi Bluetooth |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Support for Access databases | Peter | Basic4ppc Wishlist | 3 | 03-18-2008 11:39 AM |
| Network access | skipper | Questions & Help Needed | 4 | 02-19-2008 08:21 AM |
| Microsoft Access Query | somersetrc | Questions & Help Needed | 2 | 11-29-2007 08:29 AM |
| Access to Outlook contacts | Big JR | Code Samples & Tips | 3 | 09-26-2007 10:16 AM |
| Structured one dimension Array | Cableguy | Questions & Help Needed | 1 | 06-27-2007 01:17 PM |