![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I get:
(Input string was not in the correct format) In optimized compilation When I use: Code:
Sub InitializeConfigLine
If TextBoxGusset.Text <0 Then
TextBoxLayflat2.Text=TextBoxWidth.Text
LabelYeild2.BringToFront
TextBoxYeild.BringToFront
ImageButtonConfig.Text=TextBoxWidth.Text &"x"& TextBoxMillage.Text
Panel20.BringToFront
Else If TextBoxLayflat2.Text=TextBoxWidth.Text+TextBoxGusset.Text
TextBoxNip.Text=Table2.Cell("nip",0)/2
TextBoxCenter.Text=TextBoxWidth.Text-TextBoxGusset.Text
TextBoxNipToCenter.Text=TextBoxNip.Text-TextBoxCenter.Text/2
TextBoxLeftGusset.Text=TextBoxGusset.Text/2
TextBoxRightGusset.Text=TextBoxGusset.Text/2
ImageButtonGussetConfig.Text=TextBoxLeftGusset.Text &" / "& TextBoxCenter.Text &" / "& TextBoxRightGusset.Text
ImageButtonCenterToNip.Text="-> "& TextBoxNipToCenter.Text &" <-"
Panel2Back.BringToFront
Panel19.BringToFront
LabelLayflat2.BringToFront
TextBoxLayflat2.BringToFront
ImageButtonConfig.Text=TextBoxWidth.Text &"x"& TextBoxGusset.Text &"x"& TextBoxMillage.Text
PanelLowerFormCoverGusset.BringToFront
End If
TextBoxYeild.Text=TextBoxLayflat2.Text*TextBoxMillage.Text*TextBoxDensity.Text
TextBoxSS2.Text=TextBoxPPH.Text*Table2.Cell("sp",0)/Table2.Cell("pph",0)
TextBox1.Text=TextBoxLayflat2.Text*.637/Table2.Cell("dia",0)
TextBox2.Text=TextBoxLayflat2.Text/Table2.Cell("top",0)
TextBox3.Text=TextBoxLayflat2.Text/Table2.Cell("bot",0)
TextBoxLS2.Text=TextBoxPPH.Text/TextBoxYeild.Text/.06
ImageButtonLine.Text="Line " & Table2.Cell("lin",0)
Form2.Show
Last edited by cdeane : 07-17-2008 at 12:30 AM. Reason: Wrong Code |
|
|||
|
Sorry for the long delay,I had to work all this weekend.
I will attempt to add an attachment here so you can see the full affect of my application. It runs OK in normal compilation but not in optimized compilation.In fact I could say the same for it the other way around in other aspects of the program. When running the program you will need to know this: 1.Enter Film Spec. Ex.(Flat) Layflat(50) Millage(.002) PPH(500) 2.Select a Density. Any will do. 3.Select a line. 1 Thru 5 will do. 5newnew.zip Last edited by cdeane : 07-20-2008 at 10:26 PM. |
|
|||
|
|
|
||||
|
I've found two problems:
1. You should not write statements directly after an Else keyword(in multiline If clause). Instead of: Code:
If TextBoxPPH.Text=<0 Then
Msgbox("Must Enter PPH","ERROR:PPH",cMsgBoxOK,cMsgBoxHand)
TextBoxPPH.Color=0,255,255
TextBoxPPH.Focus
Else TextBoxPPH.Color=cWhite
Code:
If TextBoxPPH.Text=<0 Then
Msgbox("Must Enter PPH","ERROR:PPH",cMsgBoxOK,cMsgBoxHand)
TextBoxPPH.Color=0,255,255
TextBoxPPH.Focus
Else
TextBoxPPH.Color=cWhite
Code:
Sub InitializeConfigLine If TextBoxGusset.Text >0 Then Code:
Sub InitializeConfigLine If TextBoxGusset.Text <> "" AND TextBoxGusset.Text >0 Then |
|
|||
|
Sorry for the BUMP but how is it I can enter a 0 in a textbox at design time but it not show in that textbox in run time?
Code:
Sub InitializeConfigLine If TextBoxGusset.Text <> "" AND TextBoxGusset.Text >0 Then Last edited by cdeane : 07-21-2008 at 07:41 PM. |
|
||||
|
Quote:
Code:
If isNumber(TextBox1.Text) = true Then Msgbox (TextBox1.Text * 20) Else ... End If If TextBoxGusset.Text <> "" AND TextBoxGusset.Text >0 Then ' True if textbox does not contain "" and also contains a number greater than 0. i.e not null and greater than 0. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with error message | skmobile | Questions & Help Needed | 2 | 09-07-2008 08:07 PM |
| HTTP POST error message | miataman | Questions & Help Needed | 10 | 07-11-2008 11:28 AM |
| Key in dictionary error message | rossj | Questions & Help Needed | 2 | 03-07-2008 12:22 PM |
| Error Message | PepSoft | Questions & Help Needed | 2 | 11-19-2007 02:59 PM |
| Tutorial - Error Message? | ArchiMark | Questions & Help Needed | 5 | 09-18-2007 07:25 PM |