Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to ping an ip address from a table
Message
 
À
26/01/1997 19:17:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00018370
Message ID:
00018444
Vues:
43
>>
>>If the IP address contains . (dot/period) doesn't the Macro substitution end at the first . ?
>Glenn
>the problem with dots and macro substitution is not if the string contains
>dots
>
>it is if you want to put a dot after the substitution
>then you have to do something like
>
>this.&whatever..property etc.
>
>Arnon

You are correct, as usual. A test I had used produces unpredictable results. Try this.

create test.prg
wait window *test.prg*

create test.001
wait window *test.001"

a="test.prg"
b="test.001"

run vfp &a
run vfp &b

This is what made me think Macro substitution ended with the first dot in the text. Oops.

Since DOS accepts dots as an input parameter for the date command, I tried this:
a=*01.29.97*
run date &a

Which of course worked.

I have been using .. as in your example frequently, but I've been avoiding a lot of other Macro's that might have worked.

Thanks for helping clarify this.
Glenn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform