Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL Select Problem
Miscellaneous
Thread ID:
00512431
Message ID:
00512431
Views:
47
To all,

I am issuing a select:

SELECT nPrice, iLevel, iCount, ThisForm.GetFraction(iFraction) AS cFract, STR(iCount) + STR(iFraction) AS cSort FROM Pricing INTO CURSOR crsPrice WHERE Pricing.iPriceGpId = MenuItem.iPriceGpId ORDER BY cSort

Everything works fine except that the return from the funtion only returns the first five characters, when actually the return is never shorter than 10 characters. All fields being selected are Integer fields except for the first one which is a N(8,2). I dumped the cursor out to a file and it indeed only has 5 characters in the structure. Any one know why this happens, and if it's for some odd reason "By design."

Any help would be much appreciated.

John Rowlinson
Microworks POS Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform