Comparing  the code for both languages             



The Visual Basic Code has many objects,properties,events and functions.
NSbasic Ce also but what of these may we use for a common code ?


First of all please remember that to develop code running on both the        The EFsoft GUI 
languages in question you have to save and share the code as Text.           Share VB/NSBasic Code
 
The second point is to create using VB a form that must have the same
dimension of the unit's CE screen on which the code must run and use
for any objects the same name in both systems.

We can now go down to check further details.
Many objects are the same, for example Command Buttons, CheckBox,
Labels, List or ComboBox and so on.
In this cases if you use the base properties you will not meet any problem.
The events may cause instead some problems as some object in NSbasic
support Click event only while the same objects in VB show much more
events to use. 

Construct as If..Then..Else or Select Case etc are the same while others
instructions as Open gets the same results but by a quite differ syntax.
This is due (the Open case may be a sample) to the need to add using
NSbasic the File.dll that, on the contrary, is already available using VB.
This is a sample of the differ code:

VB     ) Open "Path & FileName" for Input as [File number]
    while
NSB  ) Addobject "File","File1",0,0,0,0
          File1.Open "Path & FileName", 1 
(Where 1 is the code of 'Input' and not the File number as above)

In the same way you have to handle the Close instructions

VB     ) Close
   while
NSB   ) File1.Close