Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHR(7) - How exactly does this work
Message
De
25/05/1999 12:15:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/05/1999 12:01:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00222507
Message ID:
00222542
Vues:
22
>>>In a number of places, I'm getting problems on the command line ??chr(7). For example, the program stops.
>>>
>>>Even though there are simple work arounds, I was wondering if anyone could tell me exactly how this works, so I that I can understand the problems.
>>>
>>>Thanks Mace
>>Macer,
>>Check your "set bell". ie:It might be possible you chose a wav file and your sound card have a DMA conflict.
>>Cetin
>
>I've just taken a search through the messages, and there seem to be lots of little errors that occur in code that is using ??CHR(7) from tableupdates to moving bmps, and I have developed a theory :-), but I don't know how to replicate it :-(.
>
>From the docs '??' evaluates the command and writes it to the main VFP window. What would happen if for some reason VFP couldn't write to the main VFP window. I have a feeling this is why the code is hanging on this line.
>
>Can anyone proove or disproove my theory or am I just barking?
>
>Mace
Documents are wrong then I would say. ?? outputs to active window, current cursor position ("set alternate", "set print" etc also effect and might be a blockage for outputting).
? does line feed before output, ?? doesn't.
chr(7) is simply a nonprintable character "dinging" bell. If you suspect chr(7) itself is responsible replace it with something else ie: "x". If it works w/o error, check your sound system from control panel.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform