Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Legacy App
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Legacy App
Miscellaneous
Thread ID:
00507209
Message ID:
00507209
Views:
60
I have a Legacy Foxpro 2.6 for Windows App here to maintain.

I found that they are using on this particular form a listbox. This listbox gets its input from a SQL Select feeding to an Array. The selected value goes to a variable (character).

One problem.

I am starting fresh with the code to create a new layer of input, so I copied this to use. I am starting with blank databases, so the SQL statement gets NO records, hence the array is non-existant, and the form crashes upon starting.

What is a solution for this? I have placed code to check _TALLY, and then intialize the Array with 1 element, and placed values in the array element.

Is there a cleaner way?
What would you do?

Tommy
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform