How to use ascii code?
hello everyone, i have coded a program that user type text in (textArea1) and then press a button and copy this text to (textArea2) , before it copy this text i got a tokenizer that make every word copied in a single line, the question is , how i can make the program only accept arabic charachters? i mean , if user type english or type numbers or anything except arabic text, it gives a message that he should only use arabic char.. hope to hear from u soon
you should check the integer code of every char in the string to make sure it falls within the unicode range of arabic letters
Similar Messages
-
Problem showing Trademark symbol using ascii code in Flex 3
I am facing problem in displaying trademark symbol (™) using ascii codes(it is showing square symbol). I have ascii code stored in the database for trademark symbol(ascii code "™" ). So I can't use Hexa code instead of ascii code. But using ascii code I am able to show copyright symbol. Following is the sample code :
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
var trademarkSymbol = "\u2122";
var trademarkSymbol1 = "™";
var copyrightSymbol = "\u00A9";
var copyrightSymbol1 = "©";
</mx:Script>
<mx:Label text="Macromedia™"/>
<mx:Label text="Macromedia{trademarkSymbol}"/>
<mx:Label text="Macromedia{trademarkSymbol1}"/> \\ problem code
<mx:Label text="Macromedia©"/>
<mx:Label text="Macromedia{copyrightSymbol}"/>
<mx:Label text="Macromedia{copyrightSymbol1}"/>
</mx:Application>
Please suggest some solution.
Regards
Rajat SahniYou must use Unicode values, not Windows extended ASCII values.
The Unicode value of a copyright symbol is hex 00A9 or decimal 169. This happens to be the same as where it is in a Windows' extended ASCII character set, but this is irrelevant. The Unicode value of a copyright symbol is hex 2122 or decimal 8482. In Windows' extended ASCII it has a different value, hex 99 or decimal 153, but again this is irrelevant.
So the reason you think it "works" for the copyright and not for the trademark is that the two character sets agree on the value of the copyright but disagree on the value of the trademark.
Moral: Find a good Unicode table.
Gordon Smith
Adobe Flex SDK Team -
How to use Java code inside WebDynpro-ABAP
Hi,
How to use Java code inside WebDynpro-ABAP.
Could any one provide sample code.
Cheers,
SamHi Sam,
We can't Bring Java Inside the ABAP. Both are running in different Environments.
and also ABAP Codes are runs on BASIS.
-Basis is a middleware between ABAP codes and Ur OS.
-Contains set of programs to load,RUN,intepret the ABAP program..
So Both are Different.
Regards,
Ramganesan K. -
How to use pramotional code in iStore?
Hi,
We have added promotional code. Its for 10% discount. But as we add code number still at item level discount is not calculated.
So if any setup is missing plz tell. We are using 11i.
Regards,
AshishHello Ashish,
Confirm your setups are as per the example in:
How to use Promotion Codes in iStore Shopping Cart (Doc ID 156009.1)
Check qualifiers on this modifier -
Remove and re-add one by one to determine if any are problematic
Please check above items to isolate possible setup issues.
Regards,
Debbie -
How to use content code to redeem mountain lion
when i had enter content code in redeem option its showing i have to make a payment method. tell me how to use content code to redeem mountain lion osx
Correction- you have to put the content code into the PDF file Apple sent you as the password to open the PDF then the redemption code is shown.
-
How To Use PMD Code Checker in Jdeveloper 9
Hai
Please Any one tell me How To Use PMD Code Checker in Jdeveloper 9
ThanksTimo
You Checking file with PMD in **Jdeveloper** possible in jdev 10.1.3
for the earlier versions you told me to use command prompt
that's why when iam checking my file with pmd the output is like the below:
D:\jdev9\OAF\jdevbin\jdev\lib\ext\pmd-bin-4.2.5\pmd-4.2.5\java14\bin>pmd D:/satyas/Test.java xml rulesets/unusedcode.xml -debug
In JDK 1.5 mode
Loaded rule UnusedPrivateMethod
Loaded rule UnusedPrivateField
Loaded rule UnusedFormalParameter
Loaded rule UnusedLocalVariable
Processing D:\satyas\Test.java
Could not find class Test, due to: java.lang.ClassNotFoundException: Test
<?xml version="1.0" encoding="UTF-8"?>
<pmd version="4.2.5" timestamp="2010-08-24T19:02:07.019">
<file name="D:\satyas\Test.java">
<violation beginline="5" endline="5" begincolumn="22" endcolumn="22" rule="UnusedLocalVariable" ruleset="Unused Code Rules" class=
"Test" method="main" variable="i" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedLocalVariable" priority=
"3">
Avoid unused local variables such as 'i'.
</violation>
<violation beginline="14" endline="14" begincolumn="23" endcolumn="32" rule="UnusedPrivateMethod" ruleset="Unused Code Rules" clas
s="Test" method="myMethod" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedPrivateMethod" priority="3">
Avoid unused private methods such as 'myMethod()'.
</violation>
</file>
</pmd> -
how to use puk-code to start
Sorry, same situation. If you want to use the iphone as an iPod, you'll have to have a supported SIM.
If you have, follow this article:
Using an iPhone without a wireless service plan - Apple Support -
I have iphone 4 with virgin mobile canada, virgin provided me SIM unlock code online, but i don't know how to use that code to unlock my phone. Can anyone help me in this?
That's not how unlocking an iPhone works.
The carrier the phone is locked to submits a request to Apple, wh updates their database. When that is complete, you restore the phone with iTunes to process the unlock. -
How can use simpler code?
How can use simpler code for checking a particular value in a string?
FIND 'C' IN fg_result ."FOR PAYMENT METHODS "CPRS"
IF sy-subrc NE 0. FIND 'P' IN fg_result.ENDIF.
IF sy-subrc NE 0. FIND 'R' IN fg_result.ENDIF.
IF sy-subrc NE 0. FIND 'S' IN fg_result.ENDIF.
IF SY-SUBRC = 0.Dear Shashank,
DATA: GV_SRCH(1) TYPE C.
CASE GV_SRCH.
WHEN 'C'.
FIND 'C' IN fg_result.
WHEN 'P'.
FIND 'P' IN fg_result
WHEN 'R'.
FIND 'R' IN fg_result
WHEN 'S'.
FIND 'S' IN fg_result
ENDCASE.
Regards,
Abir
Don't forget to award Points * -
How to specify ASCII code in the delimeter of concat function
Hi, all.
In a graphical mapping in XI, how do we specify ASCII code
(hexadecimal) in the delimiter of concat standard function?
i'd like to use spaces with ASCII code(0x20) as a delimiter
because if we just enter spaces it would be very difficult
to identify what and how many delimiters are.
Thanks.Hi,
>> if we just enter spaces it would be very difficult
>>to identify what and how many delimiters are.
why dont you write a small userdefined function where you add number of spaces based on a loop.
int totalspaces = 10;
for(int i = 0; i<totalspaces;i++)
a += "";
return a;
cheers,
naveen -
How to use Source Code Control for Large Application?
Hi, All!
I would like to collect knowledge about "best practice" examples for using Source Code Control and project organization for relative large application (let's say approx 1000 SubVIs).
Tools used:
LabVIEW 8.0
CVS Server
PushOK CVS Proxy Client
WinCVS
With LabVIEW 8 we can organize large project pretty well. This described in article Managing Large Applications with the LabVIEW Project.
I have read this article too: Using Source Control Software with LabVIEW In this Article Source Safe used, but with PushOK all looks nearby the same and works (some tricks for compare function are required).
Example. Two developers working together on same project. Internally project is modular, so one developer will work with module "Analysis", and another one with "Configuration" without interferences. These modules placed into Subfolders as shown in example above.
Scenario 1:
Developer A started with modification of module "Analysis". Some files checked out. He would like to add some SubVIs here. So, he must also perform check out for the project file (*.lvproj), otherwise he cannot add anything into project structure.
Developer B at the same time would like to add some new functions into module "Configuration". He also needed to check out project file, but this file already checked out by Developer A (and locked). So, he must wait until lvproj file will be checked in. Another way is mark *.lvproj files as text files in PushOK, but then one of developers will get conflict message by checking in and then merging will be necessary. This situation will coming very often, because in most cases *.lvproj file will be checked out all the time.
Question: Which practice is better for such situation? Is Libraries better than folder for large project?
Scenario 2:
Developer C joined to the team. First, he must get complete project code for starting (or may be at least code of one Library, which assigned to him).
Question: How it can be done within LabVIEW IDE? Or WinCVS (or other SCC UI) should be used for initial checkout?
Scenario 3:
Developer D is responcible for Build. Developers A,B,C have added lot of files into modules "Analysis", Configuration" and "FileIO". For building he need to get complete code. If our project splitted into folders, he should get latest *.lvproj first, then newly added SubVIs will appear in Project Explorer, then he should expand tree, select all SubVIs and get latest versions for all. If Project organized in Libraries, he must do the same for each library, isn't?.
Question: Is this "normal way", or WinCVS should be used for this way? In WinCVS its possible with two mouseclicks, but I prefer to get all code from CVS within LabVIEW IDE recursively...
That was a long post... So, if you already working with LabVIEW 8 with SCC used for large project, please post your knowledge here about project structure (Folders or Libraries) and best practices, its may be helpful and useful for all of us. Any examples/use cases/links etc are appreciated.
Thank you,
AndreyRegarding your scenarios:
1. Using your example, let's say both developers checked out version 3
of the project file. Assuming that there are only files under the
directories in the example project, when Developer A checks in his
version of the project, there will be new files in one section of the
project separate from where Developer B is working. Developer B,
notices that there is now a version 4 of the project. He needs to
resolve the changes so will need to merge his changes to the latest
version of project file. Since the project file is a text file, that is
easy to do. Where an issue arrises is that after Developer B checks in
his merged changes, there is a revision 5. When Developer A and B go to
make another change, they get the latest version which will have the
merged changes to the project file but not the referenced files from
both Developer A and B. So when A opens version 5, he sees that he is
missing the files that B checked in and visa versa. Here is where the
developers will needs to manually use the source control client and,
external to LabVIEW, get those new files.
Where libraries help with the above scenario is that the library is a
separate file from the project so changes made to it outside of the
project do not require the project to be modified. So this time, the
developers are using a single project again which time time references
two libraries. The developers check out the libraries, make changes to
the libraries, and then check those changes in. So when each developer
opens the project file, since it references the project file, the
changes to the library will be reflected. There is still the issue of
the new files not automatically coming down when the latest version of
the library is obtained. Again, the developers will needs to manually
use the source control client and, external to LabVIEW, get those new
files. In general, you should take advantage of the the modularity that
libraries provide.
2. As noted in the above scenario, there is no intrinsic mechanism to
get all files referenced by a LabVIEW project. Files that are missing
will be noted. The developer will then have to use the source control
provider's IDE to get the initial contents of the project (or library).
3. See above scenarios.
George M
National Instruments -
i have a App.xaml.cs file in Windows Phone 8.0 , amd i want to use the code in that file to make work with App.xaml.cs file in Windows Phone 8.1 Universal Apps
My Windows Phone 8 App.xaml.cs file is like as below
namespace OnlineVideos
public partial class App : Application
#region Initialization
public static dynamic group = default(dynamic);
public static dynamic grouptelugu = default(dynamic);
public static ShowList webinfo = default(ShowList);
public static WebInformation webinfotable = new WebInformation();
AppInitialize objCustomSetting;
IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
DispatcherTimer timer;
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
public static bool AdStatus = false;
public App()
UnhandledException += Application_UnhandledException;
if (System.Diagnostics.Debugger.IsAttached)
Application.Current.Host.Settings.EnableFrameRateCounter = true;
//RootFrame.UriMapper = Resources["UriMapper"] as UriMapper;
AppSettings.NavigationID = false;
objCustomSetting = new AppInitialize();
timer = new DispatcherTimer();
Constants.DownloadTimer = timer;
InitializeComponent();
InitializePhoneApplication();
#endregion
#region "Private Methods"
void StartDownloadingShows()
timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
void timer_Tick(object sender, EventArgs e)
try
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(StartBackgroundDownload);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync();
catch (Exception)
void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
if (AppSettings.StopTimer == "True")
timer.Stop();
AppSettings.StopTimer = "False";
async void StartBackgroundDownload(object sender, DoWorkEventArgs e)
switch (AppSettings.BackgroundAgentStatus)
case SyncAgentStatus.DownloadFavourites:
if (AppSettings.DownloadFavCompleted == false && AppSettings.SkyDriveLogin == true)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
ReStoreFavourites reStoreFav = new ReStoreFavourites();
await reStoreFav.RestorefavFolder(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
break;
case SyncAgentStatus.UploadFavourites:
bool result = Task.Run(async () => await Storage.FavouriteFileExists("Favourites.xml")).Result;
if (AppSettings.SkyDriveLogin == true && result)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadFavourites upLoad = new UploadFavourites();
await upLoad.CreateFolderForFav(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
break;
case SyncAgentStatus.RestoreStory:
if (AppSettings.DownloadStoryCompleted == false && AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
RestoreStory restore = new RestoreStory();
//if (ResourceHelper.ProjectName == "Story Time")
await restore.RestoreFolder("StoryRecordings");
//else
// await restore.RestoreFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
break;
case SyncAgentStatus.UploadStory:
if (AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadStory st = new UploadStory();
//if (ResourceHelper.ProjectName == "Story Time")
await st.CreateFolder("StoryRecordings");
//else
// await st.CreateFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
break;
default:
ShowDownloader.StartBackgroundDownload(timer);
break;
#endregion
#region "Application Events"
private void pop_Opened_1(object sender, EventArgs e)
DispatcherTimer timer1 = new DispatcherTimer();
timer1.Interval = TimeSpan.FromSeconds(5);
timer1.Tick += timer1_Tick;
timer1.Start();
void timer1_Tick(object sender, EventArgs e)
(sender as DispatcherTimer).Stop();
Border frameBorder = (Border)VisualTreeHelper.GetChild(Application.Current.RootVisual, 0);
Popup Adc = frameBorder.FindName("pop") as Popup;
Adc.IsOpen = false;
private void Application_Launching(object sender, LaunchingEventArgs e)
SQLite.SQLiteAsyncConnection conn = new SQLite.SQLiteAsyncConnection(Constants.DataBaseConnectionstringForSqlite);
Constants.connection = conn;
AppSettings.AppStatus = ApplicationStatus.Launching;
AppSettings.StopTimer = "False";
objCustomSetting.CheckElementSection();
SyncButton.Login();
if (AppSettings.IsNewVersion == true)
AppSettings.RatingUserName = AppResources.RatingUserName;
AppSettings.RatingPassword = AppResources.RatingPassword;
AppSettings.ShowsRatingBlogUrl = AppResources.ShowsRatingBlogUrl;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizRatingBlogUrl = AppResources.QuizRatingBlogUrl;
AppSettings.LinksRatingBlogUrl = AppResources.LinksRatingBlogUrl;
AppSettings.ShowsRatingBlogName = AppResources.ShowsRatingBlogName;
AppSettings.LinksRatingBlogName = AppResources.LinksRatingBlogName;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizLinksRatingBlogName = AppResources.QuizLinksRatingBlogName;
Constants.UIThread = true;
group=OnlineShow.GetTopRatedShows().Items;
grouptelugu = OnlineShow.GetRecentlyAddedShows().Items;
Constants.UIThread = false;
StartDownloadingShows();
private void Application_Activated(object sender, ActivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Active;
if (ResourceHelper.AppName == Apps.Kids_TV_Pro.ToString())
AppSettings.ShowAdControl = false;
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Deactive;
AppState.RingtoneStatus = "TombStoned";
private void Application_Closing(object sender, ClosingEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Closing;
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
FlurryWP8SDK.Api.LogError("Error at Application_UnhandledException in App.xaml.cs", e.ExceptionObject.InnerException);
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in Application_UnhandledException Method In App.xaml.cs file.", e.ExceptionObject);
e.Handled = true;
return;
#endregion
#region Phone application initialization
public PhoneApplicationFrame RootFrame { get; private set; }
// Avoid double-initialization
private bool phoneApplicationInitialized = false;
// Do not add any additional code to this method
private void InitializePhoneApplication()
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
if (App.Current.Resources["AdVisible"] as string == "True")
RootFrame.Style = App.Current.Resources["RootFrameStyle"] as Style;
RootFrame.ApplyTemplate();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
// Ensure we don't initialize again
phoneApplicationInitialized = true;
//NonLinearNavigationService.Instance.Initialize(RootFrame);
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in RootFrame_NavigationFailed Method In App.xaml.cs file.", e.Exception);
e.Handled = true;
return;
// Do not add any additional code to this method
private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
// Set the root visual to allow the application to render
if (RootVisual != RootFrame)
RootVisual = RootFrame;
// Remove this handler since it is no longer needed
RootFrame.Navigated -= CompleteInitializePhoneApplication;
#endregion
Mohan Rajesh KomatlapalliBasically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8 -
How to use html codes in epub files?
In Ipad ibook application can i use html codes in that books..
Most of the html codes are working except the text box. any one can help me to fix this ?application-param tag in weblogic-application.xml may be used to define parameters:
webapp.encoding.default
webapp.encoding.usevmdefault
webapp.getrealpath.accept_context_path
http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
"Harshad Nanal" <[email protected]> wrote:
>
When we build an ear file , Weblogic-application.xml provides application-param
tag?
are they similar to env-entry in ejb-jar.xml.
Can I use application-param tag to define a configurable params
say myName and value as "Harshad"
How do i read it in the application say a simple java class that is included
in
a jar inside the ear file. -
How to use t-code: OS41?
Hi,
I'd like to create BOM using batch input via t-code: OS41?
then, which settings/custmizing shoud be maintained? and how to use?
Thanks.Hi Ren,
Please chcek this links perhaps it may help.
http://help.sap.com/saphelp_erp2005/helpdata/en/81/bab375a2b911d194a400a0c92f024a/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/81/bab366a2b911d194a400a0c92f024a/frameset.htm
Regards,
Ferry Lianto -
How to use the code to update to mountain lion?
hi
How can you use the code tu free update to Mountain Lion? thksBasically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8
Maybe you are looking for
-
Let's assume that a 61 year old guy, we'll call him Andy, is staying at his son's place temporarily, as an alternative to homelessness due to the on-going depression. Let's further assume that Andy needs to be able to print files on his son's Windows
-
PL/SQL function to read a string of characters into an array
I was wondering if there is an easier way than using the substr function multiple times. Here is the example: Suppose you have a varchar2 variable that contains the word 'Apple'. The function should take it and produce an array. We would invoke it li
-
i have to place all dates in a combo box which were Saturday suppose 1-11-2008 is a Saturday 26-10-2008 is a Saturday so i want add all these dates in a combo box so how can i do this thank u sree
-
I've just hooked up to iCloud on my iPad. Got an invitation to hook up my MacBook Pro, but when I attempted to do so, I run into a 'Mobile Me' icon where I expected to find the iCloud icon. I checked for system updates and am told there are none fo
-
Paning in Audition From Back to Front
Paning in audition is the great thing I tried to rotate pan and sound goes around you with all beauty But what if I want to pan from back to front or left from right ?