Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to convert Clipper nested arrays to VFP
Message
From
05/07/1998 21:02:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Best way to convert Clipper nested arrays to VFP
Miscellaneous
Thread ID:
00114407
Message ID:
00114407
Views:
90
I've been working on converting a system from Clipper to VFP. The Clipper version uses nested arrays _everywhere_ !!

Since VFP does not support nested arrays, I need to use another sensible approach. I know that I can point a null array element to a seperate array object, but this does not support the way the arrays are used in the system.

Here are some sample lines of Clipper code which I must convert. Parenthises are actually the curly brackets, but I can't post those in a message.



  • DECLARE aArrayName = () <-VFP does not allow arrays with 0 elements
    aArrayName = (element1, element2, (element3_1, element3_2)) <-sub-array
    Aadd( aArrayName, (element1, element2, (element3_1, element3_2)) <-adding elements to an array (and the sub-array)


  • TIA

    Larry
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform