Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 62 - Beyond String
Message
De
09/07/2003 06:45:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/07/2003 05:48:18
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00808380
Message ID:
00808385
Vues:
17
>Hi,
>
>I am trying to write a report for a customer intheir Financial Software.
>The routine I am generating is accessed via the financial software menu so it is accessing their functions.
>
>I have generated a table that the report will display but when I access the Financial software's Output Function (determines where the user would like the report to be outputed to i.e. file, printer, screen) I get the above error code.
>
>I have been informed that it might be that I am using a SubStr() function that is trying to access beyond the variable/fields contents.
>
>I am using a SubStr but only on a table field that is the primary key of the table, so there is no empty values in this field.
>
>Can anyone help?
>
>thanks,
>
>Jason

Jason,
It might not be empty but as far as I remember substr in fox2x weren't handling the case the position you request is beyond string. ie :

lcStr = 'hello'
? substr(lcStr,5,2) && Works in both VFP and fox2x
? substr(lcStr,6) && Works in VFP only

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform