Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the settings of the controls in the form(*.frm) contain exponential expressions, they will cause errors during importing VBP #1795

Closed
cycle40 opened this issue Feb 28, 2024 · 5 comments

Comments

@cycle40
Copy link

cycle40 commented Feb 28, 2024

Describe the bug
At first, thank you for addressing Issue#1790.
Now i can know the file name which causes importing error.
image

And I checked the line 222 of the file.
image

Since "TabIndex=14" seems to be OK, I thought the problem might be that there is a number written in exponential representation on the line one above. After correcting the line and importing again, the error popup disappeared.

To Reproduce
Steps to reproduce the behavior:

  1. Create a VB6 project containing a *.frm file with exponential expressions
  2. Start twinBasic IDE and select VBP Import
  3. See a error message will pop up.

Expected behavior
Exponential expressions in FRM files can also be read.

(I don't think this happens very often and I didn't expect it to be written in exponential expressions in the control settings.
So, although it seems to be of low priority, I am reporting it just in case.)

Desktop (please complete the following information):

  • OS: [Windows 11 Pro]
  • twinBASIC compiler version [twinBASIC_IDE_BETA_456]
@fafalone
Copy link
Collaborator

You're able to enter those values in your version of VB6? With the en-us version the only way I'd be able to get those is to manually edit the form in a text editor.

@cycle40
Copy link
Author

cycle40 commented Feb 28, 2024

Ok please try this.

  1. Start VB6 IDE
  2. Create New Project (Standard EXE).
  3. Open Form1.frm designer
  4. Set a PictureBox on it
  5. Set these values.
    image
  6. Save Project.
  7. Open Form1.frm by some text editor.
    image

@fafalone
Copy link
Collaborator

Ok yeah that reproduces. It doesn't stop the import though; after clicking ok the form is still importing for me, it just truncated the exponent.

FloatPropTest.zip

@cycle40
Copy link
Author

cycle40 commented Feb 29, 2024

Thanks for confirming.
Even though I have been touching VB6 for a long time now, I never knew that property values are sometimes stored using exponential expressions.

It is the same behavior as here that if I press the OK button on the error message, the rest will be imported to the end.

@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 489, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants