Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sbarkeruk

Pages: [1] 2 3
1
Suggestions and Requests / Fixed length strings
« on: April 04, 2005, 06:20:05 am »
In VB6, the model does not reflect fixed length strings when reverse engineering or create fixed length strings when forward engineering.

For example UserName As String * 20 becomes just UserName As String (i.e. variable length string).

2
Suggestions and Requests / Re: template classes
« on: November 12, 2004, 01:20:48 am »
Don't suppose you have some examples you could post?

Trying to acheive this myself.

3
General Board / Reverse Engineering and associated Templates
« on: April 08, 2005, 01:27:35 am »
I am trying to understand how the reverse engineering process works with EA. Are templates always used or is a lot of work done in the underlying code instead?

In other words, can I change most of the functionality for importing projects or not (as I can with Code Generation)? If so, which is the main Template(s) that is used?

Do you have a flow chart (or UML diagram) that would show the import process and how the Templates work  with this?

The reason I ask is that I would like to try out a number of things, the main one being to see if I can get EA to look for *.vbp (VB6 project) files and add these as a component (with stereotype StandardExe, ActiveX Exe, ActiveX DLL, etc) in a the component view (so that I can match the functionality to that of your competitors). This would be most useful to me, and I'm sure many other developers too.

Simon

4
General Board / Re: Function Macro issue
« on: April 08, 2005, 01:02:23 am »
Thanks, will have a go with your suggested methods in the meantime.

However, if VB_Comment function macro is only used for VB (as it's name suggests) then perhaps this should be modified for a future release to write only one single quote instead of 2? If this is also intended for use with VB.Net then the same would apply (VB.Net also uses just one single quote for comments).

Simon

BTW Big praise for the speed and detail of responses on this forum. As you have probably noticed from my other postings, I am evaluating 4 tools at the moment and yours has far, far superior support - even when compared against the biggest names (no offence). Excellent stuff.

5
General Board / Function Macro issue
« on: April 07, 2005, 07:21:38 am »
When using the Code Generation Templates, the Function Macro VB_COMMENT does not quite work correctly. This is appending two single quote characters in front of the text, instead of just one (that is the normal practise in VB6).

So '' My Comments is generated instead of ' My Comments.

In my case I was referring to the Operation element Notes (as in Code Generation Templates | Visual Basic | ClassNotes) but suspect that this is a global issue with the macro.

Simon.

6
General Board / Database Schema Import Issue
« on: April 08, 2005, 07:15:29 am »
Am trying to import an MS Access Database (The NorthWind sample) via ODBC but get a 'Unrecognised Database format' error (even though it has just shown me a list of tables, etc!!

This was done as follows:

1) Create a new project and select MSAccess as the default DB.
2) Select Project | DataBase Engineering | Import DB Schema from ODBC.
3) Choose Import as New Objects.
4) Click the ellipsis button (...) next to Database Name.
5) Click Machine Data Source | MS Access Database | OK.
6) Choose NorthWind.mdb then click OK.
7) Choose Import | Select All | OK.
??? Get the error 'Unrecognised Database format <path>NorthWind.mdb' at this point (when getting the details for the selected tables).

Simon

7
General Board / Printing on one page
« on: April 08, 2005, 08:19:05 am »
I have a model with 10 small DB Tables being represented.

I would like to fit this onto one page, as I expect this would still look quite neat (and not too small to read) in this case.

However, I have not managed to do this successfully yet as the preview in the Diagram View (i.e. the UI where I create my model) is different to what is actually output.

To clarify this, I performed the following steps with my model:
1) Click the Size To Page icon.
2) Click the AutoLayout icon (this fits the model within the broken lines representing one page!!). This looks how I want it to be, as it gives the illusion that the model will print on one page.
3) Click Print Preview icon, this shows a preview that spans across 4 pages!!!!

So how can I reduce the output to one page?

Simon

8
General Board / Error during SQL Server 7 DB Import
« on: April 08, 2005, 07:50:59 am »
Have tried to import a SQL Server 7 Database (via ODBC).

During the stage where the table details are being imported, an error Invalid object name 'sysproperties' occurs for every table (system or user) in the DB!

Simon

9
General Board / 'Modify Property Implementation' form bug
« on: April 06, 2005, 07:24:01 am »
Am using Windows XP and creating a model for fwd engineering with Visual Basic 6.

If I add an attribute and check the Property checkbox, then 'Modify Property Implementation' form appears. If I then check both Read and Write checkboxes, then choose a scope of anything except Public, for both Get Scope and Let Scope this is fine. However, returning to this form shows the Set scope is reset back to Public and the Write checkbox is unchecked!! (Let scope and Read checkbox remain as they were previously set).

This can be reproduced as follows:

1) Double-click a class then select the Details tab.
2) Click the Attributes button then click New.
3) Enter some details (Name, Type, Scope, etc) then click Save.
4) Highlight the newly added attribute in the list then check the Property checkbox.
5) In Create Property Implementation form, set both Get Scope and Set Scope to Package. Also check both the Read and Write checkboxes.
6) Click OK to save changes.
7) In the Attributes form, click the ellipsis button (...) next to the Property Name text.
8) You will see that the Set Scope is set back to Public and that the Write checkbox has been unchecked (i.e. The bug!!).

10
General Board / Model -> Code Synchronisation acting strangely
« on: April 06, 2005, 07:44:57 am »
Using Windows XP (SP1 - not allowed to install SP2 at present, due to clashes with other applications!). In my Object options I have left the recommended setting of 'Always Synchronise with existing file'.

My model (which I want to use to generate Visual Basic 6 code) consists of 4 classes, which are assigned files as follows:

1) Class clsPerson whose local file is C:\UML Test\EA\PersonProject\clsPerson.cls
2) Class clsPeople whose local file is C:\UML Test\EA\PersonProject\clsPeople.cls
3) Class modDeclarations whose local file is C:\UML Test\EA\PersonProject\modDeclarations.mod (i.e. will be a module, as opposed to class module, in VB6).
4) Class frmPeople whose local file is C:\UML Test\EA\PersonProject\UI\frmPeople.frm (i.e. will be a form in VB6). Note also that this is in a subfolder below those in 1), 2) and 3) as this will be in a seperate project (1 - 3 are part of an ActiveX EXE and 4 is a Standard EXE).

Anyway, the strange occurence happens when I come to generate code. When I initially generate the code, all 4 files are created in the relevant folder with the correct extension, etc. Also the timestamp (seen via Windows Explorer) shows that these have just been created.

However, the weird bit is that if I do either a) Generate Source Code or Synchronise Package Contents (Model -> Source) when no changes have been made then only the file in 4) above gets updated (or at least it is the only one with a new timestamp).

So I am wondering why, if no changes have been made, would one file be updated and the others not?? Or is it a timestamp bug??

BTW just to clarify further, when I am generating/synchronising I am doing this by selecting the Logical Model then choosing Include All Child Packages (1 - 3 are stored in one package, and 4 in another, both with Logical Model as the parent node/root) so all 4 files are showing up in the generation output window.

Simon

11
General Board / Bug with Modified col of Code Generation Template
« on: April 07, 2005, 06:33:57 am »
If I choose something in Code Generation Templates then change it and save it, the Modified column then changes from No to Yes, to show it has been changed from the default. So far so good.

However, if I change the code back to how it was or click the Get Default Template button, then the Modified column does not change back to No! Have tried reloading, Saving, etc all of which makes no difference to the bug.

(Visual Basic - Attribute was the one I was experimenting with, not that this should matter).

Regards,

Simon

12
General Board / Reverse Engineering Enumeration and Struct (Type)
« on: April 07, 2005, 07:55:15 am »
With VB6 as the default langauge, I understand that struct must be used instead of type in EA (As Code Generation Template looks for struct and enumeration to handle these stereotypes).

Anyway, I have set up a class (stereotype module) that contains two subclasses:

a) A class with stereotype set to enumerator.
b) A class with setereotype set to struct.

When generating code, the enumerator and struct are not added to the class!

To ensure I did not set up my model incorrectly, I created a class in VB6 that had this content, then reverse engineered it. The resulting model was identical to mine as far as I could tell!

Please could you tell me why the Code Generation Templates seem to have completely ignored these two subclasses?

I do have two overriden stereotypes for the Visual Basic Class template (module - my custom stereotype, and form) both of which I have based on the basic class template to generate the correct output in each case, but do not expect that this should have caused a clash.

Class Template, enumeration stereotype override and struct stereotype override all remain unmodified (as per default code).

Simon

13
General Board / Re: Issue with amending the Local File for a Class
« on: April 07, 2005, 04:02:30 am »
Aha, great! A whole new area that I did not notice existed!

However, one point: Until now I have been right-clicking on the class (in project view) and choosing Properties (instead of using the 'other' properties form that you have just introduced me to).

Is this not a bit confusing having two properties forms that each refer to a class, especially when they are both given the same name (Properties) with nothing to distinguish between them? Would it not be easier having the same options in each?

Just a thought for future changes (with UI Visibility, etc in mind).

Thanks for the help again, but hope that my comments are also useful to you.

14
General Board / Issue with amending the Local File for a Class
« on: April 06, 2005, 09:19:38 am »
I have reverse engineered a project and if I go to the Class properties dialog then click File then I can see the file listed.

However, I deleted the file then entered a different file to replace it.

I did this for each file in the project (so that I can generate code and compare the orgional code with the newly generated code in the new local files, for the sake of the evaluation).

However, when I click Code Engineering | Generate Source Code the old local file names (that I deleted) are shown under Target File!!

Is this a bug or is there somewhere else I can change this?

I am concerned because I will want to use the product for both forward and reverse engineering options, but there seem to be quite a lot of issues (See my other postings). Despite this I am still hoping that this can be resolved (whether it is my fault, due to inexperience of the product, or a bug), so I await your advice.

Regards,

Simon.

15
General Board / Forum Postings
« on: April 06, 2005, 09:24:27 am »
Is there an option somewhere to view a list of just the postings that I have made (i.e. my message history)? Seems to be nothing in Profile, etc unless my eyes are deceiving me.

Thanks,

Simon

Pages: [1] 2 3