How to know the no. of bytes in a String Control Function?
Hi,
I would like to know the no. of bytes for a certain String Control Data.
For instance, if i have a String Length Function, on the left is a String Control and on the right is a Length Indicator.
If i will type coordinates, i.e. 9.25,4.25 on the String Control it will show 9 on the Length Indicator. I think 9 do not mean 9 bytes but
only a length. Is there any function in LV that will tell me the total bytes of the data on the string control?
Appreciate for any advise.
Thanks a lot.
Thanks tst for your kind reply.
Here is what i am trying to find/goal.
I will be using wireless receiver for my system. The wireless receiver have some signal strength ranges; 95dbm @ 1Mbps (mega bit per sec), 90dbm @ 11Mbps, 82 dbm @ 24 Mbps and 75dbm @ 54 Mbps. Ofcourse i prefer to have lower data transfer rate so that my signal strength is best.
I will be sending coordinate data/s via wireless communication using string controls. But i do not know how big/heavy is my coordinate data
If i can know how many bytes or mega bytes the data i want to send then i will be able to transfer it to bits or mega bits(8 bits = 1 byte) thus i will know which setting i can use for the wireless receiver. And if the data is too big then i have a basis to redesign my data transfer to suite a better signal strength.
Thanks for your help.
Similar Messages
-
How to get the length in bytes of a string
My string has both latin (1 byte) and chinese (2 bytes).
My program is in unicode system.
How to measure the length in bytes of the string?
the xlen function does not work.Hello,
parameters : p_str type string.
data : len type i.
len = strlen( p_str ).
write : / len.
With Regards,
BVS
Hi BSV, your code return the number of characters not bytes.
Remember chinese character in US are encoded with 2 bytes.
And my string contain both latin and chinese characters.
thanks -
How to know the size in byte of a file before importing it with ftp
hello
i have a file in witch there is the pathe of many file
i reade these path and i use ftp to get these file
my problem is that i want to display a progress bar during the getting of file
so dont no how i can know the size of these file to put a maximum to the progress barpackage cni;
import javax.swing.*;
import sun.net.ftp.*;
import sun.net.ftp.FtpClient.*;
import java.io.*;
import java.lang.*;
import sun.net.TelnetInputStream;
import java.util.*;
import java.lang.String;
public class FTPclients
//Variables
private static String server = "faycal";
private static int port = 21;
private static String user = "anonymous";
private static String passwd = "[email protected]";
public String toString(JTextField tx)
String txt;
txt= new String(tx.getText());
return txt;
public static void main(String args[])
ConnFile cf = new ConnFile("d:\\cni\\adresse.txt");
FTPclients fc = new FTPclients();
ConnFile cfbis = new ConnFile("d:\\cni\\chemin.txt");
try
//String s=cf.lectureid();
String s;
while((s=cf.br.readLine())!=null)
String s1=s.substring(0,s.lastIndexOf("\\"));
String s2=s.substring(s.lastIndexOf("\\")+1);
System.out.println(s1);
System.out.println(s2);
//ajout du double anti slash a la chaine s1
String name =s1;
StringBuffer sb = new StringBuffer(s1.length()+10);
for(int index=0; index<s1.length();index++)
char c = s1.charAt(index);
sb.append(c);
if(c=='\\')
sb.append('\\');
System.out.println(s1);
s1= sb.toString();
System.out.println(s1);
//creation d un client ftp
FtpClient client = new FtpClient();
System.out.println("gggggggggggggalut");
client.openServer(server,port);
System.out.println("xxxxxxxxxxxxalut");
client.login(user, passwd);
client.binary();
client.cd(s1);
System.out.println("la taille de "+s1+" est "+taille+" octets");
System.out.println("ssssssssssssalut");
System.out.println(client.welcomeMsg);
System.out.println("buhhhhhhhhhhhhh");
//copie du chemin saisi par l utilisateur
String chemre;
cfbis = new ConnFile("d:\\cni\\chemin.txt");
String chemvir = cfbis.lectureid();
System.out.println(chemvir);
if (chemvir==null)
chemre="d:\\";
System.out.println(chemre);
else
chemre=chemvir;
System.out.println(chemre);
String chem=chemre+"\\"+s2;
System.out.println(chem);
//pour creer le nouveau fichier
TelnetInputStream fich = client.get(s2);
FileOutputStream out = new FileOutputStream(chem);
//pour ecrire dans le nouveau fichier
int i;
while(true)
i = fich.read();
if(i == -1)
{ break; }
out.write((byte)i);
System.out.println("bahhhhhhhhhhhh");
//fermeture du serveur ftp
client.closeServer();
System.out.println("ok");
}//fin while
String chemvir = cfbis.lectureid();
}//fin du try
catch(IOException e)
System.out.println(e);
}//fin du main
}// fin de la classe
do you know how -
How to know the size in bytes of a directory?
I would like to know if there's a class or a function which allows to know the size of all files in a directory?
You have to create a File object for your directory, then list all files (using the list() method) and create a File object for each item returned. Then ask each File object for it's size and add them up.
Thomas -
Hi,
I'm working on a feature triggered by scroll bar position of a string control changed.
But I could not find a good way to catch the scroll bar position changed event,
the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
But the problem is, mouse up on the scroll bar could not trigger String: Mouse up event!
So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
Attachments:
scroll bar pos changed.vi 15 KBHello Cecilia,
I don't think there is any build-in event for this.
One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
Then you can build your main as if they were a scrollbar move event.
And dont forget to close the thread and destroy the event at the end.
Hope it helps.
Attachments:
Scrollbar event.PNG 10 KB -
How to know the length of a Byte array?
how to know the length a byte array if it is an argument of the method, e.g.
public byte[] hash(byte[] data) throws Exception
I wanna store the length of data into a integer in the method of hash, but no idea how to get it
THanks!to conclude:
I am a newbie, I wanna know , those "System"
methods as well.What exactly does that have to do with your original question?
or instance:
System.arrowcopy() , where can I find the
definition also?You probably meant System.arraycopy. The documentation is called JavaDoc and for Java 1.5 (a.k.a. 5.0) it can be found here: http://java.sun.com/j2se/1.5.0/docs/api/index.html
If you've not yet found the API documentation, then I'm pretty sure you should start with some tutorials, they probably point to all the interesting documentation as well. -
How to know the size of a DATABASE ?
Guys,
How to know the size of a DB ?
Also
How to know the size of a TABLE ?
How to get the content of a procedure/view/trigger ?
Inputs are welcome !How to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
How to know the size of a TABLE ?Query all/dba/user_segments.
How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
Message was edited by:
Satish Kandi -
Hi
Following is the output of sh ver of cisco 2621 router. There is two place saying about the memory
cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memory.
another
32K bytes of non-volatile configuration memory.
what is the actual memory size? is it 64 or 32?
Can i install an IOS which minimum requires 64Mb memory in this Router?
#sh ver
cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memor
y.
Processor board ID JAD05440L9D (3776779414)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)In addition to Andrew info..
How to know the memory ?
cisco 2621 (MPC860) processor (revision 0x600) with 53248K/12288K bytes of memory.
when you get the above output from sh ver,
simply add 53248k + 12288k and always devide by 1024.
e.i
53248k + 12288k / 1024 = 64
64MB is your total memory in your router
Rgds
Jorge -
How to know the size of a webservice request
Hello...
I'd like to know if you know how do I get the size of a Web request? I mean, I need to know the size of a Web Request 'cause I'll fill a Gauge Object up based on the quantity that I have received from the WebService.
I'm using the KSOAP and KXML API's for consuming that WebServices and I used the Content-lengh Method and it didnt return anything to me... it returned empty. So, do you know how do I fill a Gauge Object based on the size of the WebRequest? Could you tell me some examples plz?
Thanx...
Lucas AbraoHow to know the size of a DB ?If you want to know the physical size, query dba_data_files + dba_temp_files. if you need to know the actual consumed space in those files, compute sum of bytes from DBA_SEGMENTS.
How to know the size of a TABLE ?Query all/dba/user_segments.
How to get the content of a procedure/view/trigger ?all/dba/user_source, all/dba/user_views, all/dba/user_triggers.
Message was edited by:
Satish Kandi -
Hi Team,
R12 Instance :
Oracle Installed Base Agent User Responsibility --> Item Instances -->
Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
In the above page there are two table regions.
Notes.
-------------------------------------Table Region---------------------------
Attachments
-------------------------------------Table Region---------------------------
--the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
I want to know what are the document types are displayed in this page ?
--We developed a custom program to attach the attachments to the services contracts and the above seeded OAF page displays those ..as needed.
But after recent changes..the Attachments--> table region is not showing the attachments.
I have verified the query..and could not find any clue in that..
but i need some help if you guys can provide..
SELECT *
FROM
*(SELECT d.DOCUMENT_ID,*
d.DATATYPE_ID,
d.DATATYPE_NAME,
d.DESCRIPTION,
DECODE(d.FILE_NAME, NULL,
*(SELECT message_text*
FROM fnd_new_messages
WHERE message_name = 'FND_UNDEFINED'
AND application_id = 0
AND language_code = userenv('LANG')
*), d.FILE_NAME)FileName,*
d.MEDIA_ID,
d.CATEGORY_ID,
d.DM_NODE,
d.DM_FOLDER_PATH,
d.DM_TYPE,
d.DM_DOCUMENT_ID,
d.DM_VERSION_NUMBER,
ad.ATTACHED_DOCUMENT_ID,
ad.ENTITY_NAME,
ad.PK1_VALUE,
ad.PK2_VALUE,
ad.PK3_VALUE,
ad.PK4_VALUE,
ad.PK5_VALUE,
d.usage_type,
d.security_type,
d.security_id,
ad.category_id attachment_catgeory_id,
ad.status,
d.storage_type,
d.image_type,
d.START_DATE_ACTIVE,
d.END_DATE_ACTIVE,
d.REQUEST_ID,
d.PROGRAM_APPLICATION_ID,
d.PROGRAM_ID,
d.category_description,
d.publish_flag,
DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
d.URL,
d.TITLE
FROM FND_DOCUMENTS_VL d,
FND_ATTACHED_DOCUMENTS ad
WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
*) QRSLT*
WHERE ((entity_name ='OKC_K_HEADERS_V'-- :1
AND pk1_value IN ( 600144,599046) --:2
AND category_id_query IN (1, :3, :4, :5, :6, :7) )
AND datatype_id IN (6,2,1,5)
AND (SECURITY_TYPE =4
OR PUBLISH_FLAG ='Y')))
--='000180931' -- 'ADP118'
The above seeded query is the one which is used for table region to retrieve the data..
how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
--SridharHi Patricia,
is it working for restricted key figure and calculated key figure ??
Note Number Fisc Period Opening Days
1 1 2
2 1 3
3 1 0
because I have other restriction, so I create two restricted key figure..
RK1 with restriction : Total Number of Note,
RK2 with restriction : Total Opening Days ,
then I Created a calculated key figure, average opening days in a period
CK1 = RK2 / RK1..
in this case, I am not sure if it will work or not..
for example, during RK2 calclation, it might be this 2+3 = 5, the line with 0 will be ignored..
during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
could you please confirm.. -
With a contract number, how to know the total PO release value against it?
Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract. In other word, we would like to know the total release value of all the POs with the same contract number. To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
We will give you reward points!
Thanks!hi Mohammad,
By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess. Could you let us know which one is the PO release value for this contract?
Contract Type Vendor Name PGp Agmt. date
Item Material Short text Mat. group
D I A Plnt SLoc Targ.qty. Un Net price Curr. per Un
4800000112 WK 2000012012 GULF INTERSTATE FIELD SERVICES QBH 06/20/2006
Agreement start06/20/2006 Agreement end 12/31/2007
Tgt. val. 1,000,000.00 USD Open 1,000,000.00 USD 100.00 %
00001 Inspection Svcs, Construction R3VNI
L U 0 UL 0.00 USD 1 EA
00002 Chief Inspector R3VNI
L U 0 DAY 390.00 USD 1 DAY -
How to know the balance and validity of internet data in iPad
How to know the balance and validity of internet data in iPad?
Sir I m using internet in ipad4 with airtel network
They provide me 2gb data with the amount of 255 rupees
And now I inserted the sim in my ipad4
And start the surfing on safari n all
And now I wanted to know how much data is balance. -
How to get the number of bytes at TCP port
Hi all,
How to get the number of bytes to read at the TCp port...as someone had suggested in some forum we do read the number of bytes first and then pass this...
but we get a problem when we have FF data in this...because then it sends 2 FF data...and cause of this we skip the last data...is there any solution for the same?Hi
In LabVIEW you don't have the same property as in serail port.
You havn't "Byte at TCPIP port".
if you developp a protocol, one soltion, is to send the size to read.
Ingénieur d'Application / Développeur LabVIEW Certifié (CLD)
Application Engineer / LabVIEW Certified Developer (CLD) -
How to know the class method behind an enterprise service
Hi,
SAP has provided enterprise services for Room booking in Real Estate module. They are even shipping the complete application for a nominal price. But the standard version is not suitable for our client requirement so they want to develop this application inhouse.
Now my question is: I know the enterprise services used in this application. How to know the implementing methods behind these enterprise services ?
If possible suggest which approach will be a better option for the inhouse development.
1. Webdynpro ABAP and use directly methods behind the enterprise services.
2. Webdynpro ABAP and create client proxy class for the enterprise services.
3. Webdynpro JAVA and use the enterprise services.
4. Using visual composer modelling the application.
Please suggest the best alternative.
Best Regards,
Aleem Mohiuddin.Hi
They are even shipping the complete application for a nominal price. But the standard version is not suitable for our client requirement so they want to develop this application inhouse.
I assume you are talking about xApps.
How to know the implementing methods behind these enterprise services ?
In sproxy transaction you can search service and then you can see class and method implemented behind that particular service.
1. Webdynpro ABAP and use directly methods behind the enterprise services.
In my opinion not recommended to bypass ES and use method behind it.
2. Webdynpro ABAP and create client proxy class for the enterprise services.
Not sure why you want to create proxy of ES.
3. Webdynpro JAVA and use the enterprise services.
4. Using visual composer modelling the application.
You can use either Webdynpro (ABAP or Java) or VC to model your application which consume ES in backend. Both options are good, you can chose Java or ABAP flavor of dynpro based on skill available in team. VC is very effective in rapid modelling and can be used in protyping or in development of complete application.
Regards,
Gourav -
How to know the error in the goods movement
Hai gurus,
a) while doing goods issue and goods receipt , if there is any
error in the goods movement how to know the same and correct it.
Regards,
sekar chandHi,
If You are doing GR and GI during order confirmation then you will find a tab for Display Error(Bell Ikon).At the time of any error you will find this icon highlighted.press it you will find details error description and proposed solution.
Regards,
Dhaval
Maybe you are looking for
-
3rd Generation iPod Shuffle Not Recognized by iTunes 11.1.1
I am trying to have iTunes recognize my iPod Shuffle 3rd generation. It worked fine until I downloaded iTunes 11.1.1. I am using OS X version 10.8.5. Does this latest version of iTunes not work with my shuffle any longer?
-
Backup fail on Time Machine and My Passport for Mac on Yosemite
Cannot seem to get Time Machine to do a full backup of my NEW My Passport for Mac. I've: - Updated firmware on WD external drive (and formatted correctly for Apple) - Updated to latest IOS 10.10.3 (Yosemite) - Verified and repaired Mac HD via iOS Dis
-
What's happening to my iPhone?
So I set up my own account on iTunes synced it to my laptop, and my dads friend ask me of I could do his, that was fine set it up in HIS own account. So mine and his are different BUT he keeps some of my texts and gets all the new apps I download and
-
E71- unable to connect IMAP outgoing server
HI, After I re-installed software in my E71 I have faced problem that I unable to connect IMAP outgoing server it was earlier fine Even Incoming mails are no problem currently. please fix this issue regards nizar MODERATOR'S NOTE: We would like to i
-
Flash not playing/showing when embedded in DW
I'm getting back into doing web work after a 8 year lay off, so I may be doing something really basic wrong. However, I believed embedding my .swf file into my web page was so simple, even somebody with completely out of date knowledge could do it. I