Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Range of values
Message
 
 
To
05/11/2001 15:47:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00577572
Message ID:
00577591
Views:
18
BTW, what kind of functionality do you want to implement? I believe, Ko Wisse (didn't see him here for a couple of months) has a Range class in Download section here.

>>>Does anybody have a function that converts a range of values into individual values? The best example, I think, is the range of pages in newer versions of MS-Word, where the user can type "1, 3-5, 7". I want this converted to a form that can easily be processed, like the string "1, 3, 4, 5, 7", or an array or cursor with the corresponding elements.
>>>
>>>I am sure I can write the function myself, but it seems to me this is a rather involved procedure.
>>>
>>>Hilmar.
>>
>>It doesn't seem complicated to me. I just wrote it in my head. Hint: use for loop :)
>
>OK, I'll try it. Actually, when I wrote "difficult", I was thinking mainly about the string parsing. It isn't difficult in terms of commands required, but all the detail work, and checking invalid user input.
>
>Hilmar.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform