Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New VB Features
Message
De
08/10/2000 11:28:20
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00425458
Message ID:
00426608
Vues:
23
George

>>I would argue that for readibility using SELECT CASE would be more appropriate whenever you hit about four deep in the IF...THEN...ELSEIF.<<

I'd agree except that you can't use Select Case with multiple Case expressions as you can with the VFP Case statement.

>> VB, being much stronger typed as offers at least one mathematical operator (integer division. ie. 5 \ 2 returns 2 which would be equivalent to INT(5 / 2), which is also available in VB.) <<

Sure, you can use Int(5 / 2) just as you do in VFP even though I guess a purist might insist that the Int() is not required in typed integer math.

>> Other differences in syntax, Instr() as opposed to AT(), Mid() as opposed to SUBSTR().<<

But these are small and can be handled fairly easily...

>>Then you have the ability to create a structure, which has no equivalent. The AddressOf function for callbacks.<<

For a VFP person looking for equivalence in VB, though, the presence of such commands in VB is not part of the equation.

I agree with you, the syntax is so similar.

Regards

JR
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform