Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01219139
Message ID:
01219147
Views:
13
Do you know which line of code produces an error? You may find it out with LINENO() function.

>I get the message
>
>"Invalid subscript reference"
>
>Only on runtime (compiled.exe)
>
>The message does not appear on visualfoxpro developer environment
>
>On thebeforeopentable method of my first form I wrote
>The dataenviroment contains tables which I wanna test
>
>***************************
>SET PATH TO DATA ;HELP
>
>SET PROCEDURE TO FUNCTION1
>
>On ERROR DO  SEE_ERROR
>
>** the see_error method executes
>
>************************
>Function see_error
>
>   If  ERROR () = 2005
>        DO FORM bad_data_warning
>        *RETURN
>        else
>           = MESSAGEBOX("Erro: " + STR (ERROR()) + ". Contact support cursos@acrisoft.com.br"  )
>             Endif
>
>
>ON ERROR
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