Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ever have LineNo() return a zero?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00540090
Message ID:
00540117
Vues:
16
Hi!

From help file I did read:
Parameters
  1 
   If MESSAGE( ) is used in an ON ERROR routine, include this argument to return the program source code that caused the error. If the program source code isn't available, MESSAGE(1) returns one of the following: 
    - The entire program line if the line is macro substituted. 
    - A command if the line contains a command without any additional clauses. 
    - A command followed by three dots (...) if the line contains a command and additional clauses. 
If EXE do not include debug information, you will get nothing.
What is the command line for which message(1) return nothing? Is it expression like '=Function()'?

HTH.

>>>Error happened inside of command specified for ON ERROR, ON SELECTION..., ON KEY LABEL, ON SHUTDOWN and similar commands. Zero line also returned when you compile EXE without debug information. Did you compiled it with dibug information? ;)
>>
>>That's a heck of a good question... I better check that out. :)
>
>That was the problem. I turned Debugging on, and now I'm seeing the line number. Life will be MUCH easier now that I know what line of code failed...
>
>Thanks for the quick reply.
>
>Any idea why MESSAGE(1) inside my method isn't returning anything? LINENO() and LINENO(1) seem to work within the method.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform