Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculations
Message
From
01/03/1999 09:26:18
 
 
To
01/03/1999 09:20:27
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00192617
Message ID:
00192621
Views:
19
Hi Brad ---

First off, maybe using "m" by itself is not a great idea as VFP uses it as a preface to memvars, i.e. m.variable.

Secondly, think about dumping the =.T. and =.F. and just do a If PortOpen or If !PortOpen.

Third, the MESSAGEBOX(m) will error if M is numeric.


>I am having trouble with the syntax on the following calculation. Evidently, I am not structuring the command as needed by fox.
>
>any suggestions?
>
>Thanks in advance.
>Brad.
>
>
>thisform.olecontrol1.PortOpen=.T.
> if thisform.olecontrol1.portopen=.t. then
> messagebox ("The Port is open, Ready to Send this Part Number to the Saw.")
> endif
>
>thisform.olecontrol1.output="motest"+chr(13)
>
>M=thisform.txtColumn3.value
>
>Mc=(m)* -1 *THIS IS WHERE I GET THE ERROR***
>
>messagebox (M)
>
>
>thisform.olecontrol1.output="D"
>thisform.olecontrol1.output=(Mc)
>thisform.olecontrol1.output=chr(13)
>
>
>
>thisform.olecontrol1.output="GO"+chr(13)
>
>
>thisform.olecontrol1.PortOpen = .f.
> if thisform.olecontrol1.portopen=.f. then
> messagebox ("The Port is now closed")
> endif
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform