Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not so easy Function argument value or type error VFP6 S
Message
De
11/10/2000 18:32:09
 
 
À
11/10/2000 17:35:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00428109
Message ID:
00428205
Vues:
39
To Rich, Trey,
I worked around it.

From the menu I called the Form instead of the prgram.
I called the program from the init of the form.

Thank You for the Help!

RD

>Ok Trey,
>
>Here is the code.
>
>sele userfl
>
>if userfl.admin=.T.
> do form frmsetupstation
>else
> =messagebox("You Do Not have Administrative Privileges",;
> 0+16+0, "No Administrative Privleges")
>endif
>
>I have no clue were the error is coming from. When I debug it I don't get an error.
>
>Thank You for the reply.
>
>RD
>
>>>Hi all,
>>>
>>>I have been working on this for the better part of the day. I'm calling some code to test the value of a field from my menu item before I open a form.
>>>
>>>The error I get when I compile to Exe and run the program is: Function argument value or type is in valid.
>>>
>>>However when I test it in the debugger everything works great! Even if I run the exe from the debugger
>>>
>>>Point in the right direction, Please?
>>>Here is the menu set up and a sample of the code.
>>>
>>>menu set up
>>>
>>>File, Submenu, My Menu Item, Command, do prgtestfield
>>>
>>>The code
>>>
>>>sele myTable & the table is open(I checked)
>>>
>>>if myfield.value=.T. &the field is logical(I checked)
>>>
>>
>>
What is myfield - is it a field or an object?

>>
>>>do form frmname &have run the form from debugger(it works)
>>>
>>>else
>>>=messagebox("My message text", 0+16+0, "My Title")
>>>
>>>enddo
>>>
>>>Thank You
>>
>>
Which of these lines is throwing the error?
>>
>>You'll probably need to post the actual code to get a better answer.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform